## The QMainWindow Class

1 - What is the QMainWindow Class ? The QMainWindow class has been specially designed to manage the main window of your application when it is complex. Among the features offered to us by the QMainWindow class, we find in particular the menus, the toolbar and the status bar. The QMainWindow class inherits directly from…

## Blogger Conditional Tags

1 - Principle And Syntax Of Blogger Conditional Tags The principle of using conditional tags is simple: a condition is defined and the content will be executed according to a particular case. These tags can be inserted in the HTML code of the template as well as in an HTML / Js gadget. In general,…

## Solution Exercise 61: python algorithm which determines the dictionary whose values ​​are the lists of the divisors of the keys

Exercice 61 Write a program in Python that asks the user to enter five integers of their choice and return them a dictionary whose keys are the entered numbers and whose values are the lists of the divisors of the entered numbers. Example if the user enters the numbers: 14, 7, 8, 6, 13 the…

## Solution Exercise 94 *: python algorithm which tests if the first character is identical to the last

Exercise 94 * Write a Python algorithm which extract from a string text the list of words whose first character is identical to the last. Example if s = "radar number 212", the algorithm returns the list ['radar', '212'] Solution # function which tests if the first character is identical to the lastdef first_end (s):…

## Solution Exercise 93 *: python algorithm which transforms a list of integers into the list of factorials

Exercise 93 * Write an algorithm in python which transforms a list of integers L = [n1, n2, n3, ...., np] into the list of factorials: [n1! , n2! , n3!, ...., np!] Solution # function which calculates factorials of an integerdef facto (n): f = 1 for i in range (1, n + 1):…

## Solution Exercise 92**: python algorithm which transforms a list into a list made up of the means of the partial sums

Exercise 92** Write a python algorithm which transforms a list of integers L = [n1, n2, n3, ...., np] into a list whose elements are the averages of the partial sums: [n1, average(n1, n2) , average(n1, n2, n3), ...., average(n1, n2, ..., np)] Solution # Function that calculates the average of a list of numbersdef…

## Solution Exercise 91 **: python algorithm which move all words containing a number at the end of the list

Exercise 91 ** Write an algorithm in python as a function that transforms a string text T into a list where words containing numbers are placed at the end of the list. Example if T = "Python_1 created in 1991. Currently it is in version Python_3.9"the algorithm returns the list: ['created', 'in', 'Currently', 'it', 'is',…