## 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 QWidget. It is a widget that is generally used once per program and is only used to create the main window of the application.

#### Note:

Simple pyqt applications won't need to use the QMainWindow class, they just use the QWidget class.

## 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, the syntax is as follows:

``````If Condition
---  Run this part ---
Else
--- Perform this other part ---
End if``````

## Thursday, September 30, 2021

#### 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 program returns the dictionary:
``d = {14: [1, 2, 7, 14], 7: [1,7], 8: [1, 2, 4, 8], 6: [1,3,6], 13: [1, 13]}``

## Monday, September 27, 2021

#### 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']

## Saturday, September 18, 2021

#### 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!]

## Friday, September 17, 2021

#### 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)]``

## Thursday, September 16, 2021

#### 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', 'in', 'version', 'Python_1', '1991.', 'Python_3.9' ]

## Python Exercises With Solutions

1. Python Arithmetic Exercises
2. Equations & System Of Equations
3. Polynomials and Functions
4. Python Arithmetic Exercises
5. Numpy, Matplolib, Sympy , Scipy - Exercises
6. Python Arithmetic Exercises

Younes Derfoufi

## Sample Text 