This Python language tutorial in English is also suitable for beginners.

Python is a very quick language to learn, thanks to the simplicity of its syntax, therefore it is suitable for beginners and experts.

Python is an interpreted language, that is, the source program is executed by the interpreter rather than being compiled, as is the case for other languages â€‹â€‹such as C and C ++.

The goal of this simple Python tutorial is to explain the basics of the language by integrating some frameworks such as Flask and Django.

## Python tutorial topics in English

In this **Python **tutorial in English we will cover basic topics for **beginners**. We will talk about for, while loops, conditional statements, functions and object oriented programming.

I will also cover advanced topics for **Python for data Science** and **Machine Learning**. We will study the **Pandas**, **NumPy**, **Matplotlib**, **Seaborn**, and many more libraries.

### Python for beginners in English

- Python Compiler
- Introduction and installation to Python
- Variables
- Assignment operators
- Strings
- Casting
- Print Python
- First exercises in Python
- Errors in Python
- How to make scripts in Python
- Swap the value of variables
- How to use the math module
- Comparison operators

### Python Tutorial – Decision Control Structures

- If else
- elif Python
- Nested if
- Maximum between two numbers
- Maximum between three numbers
- Exercises Python if statement (fractions – null product without performing operations)
- Examples on conditional statements (corners)
- How to make the Chinese morra game
- If else example (Algorithms on triangles)
- Python exercises (equivalent figures, discount)

### Python Tutorial – Iterative Structures in Python

- While loop
- Learn more about the while loop (countdown – infinite loop – loop never executed)
- While loop examples (counting even and odd – 2 times table)
- How to find the maximum of N numbers
- Exercises with the while (calculate the mean – sum interval)
- While exercise (subtract the minor from the major until their difference becomes less than 3 units)

- How to make an algorithm on prime numbers
- Prime numbers from 2 to N
- How to make an algorithm on friendly numbers
- Indefinite cycles
- How to use Euclide’s algorithm in Python
- For loop
- Break Python
- Continue and else

### Python Tutorial – Exercises on iterative structures

- Guess the number game
- Exercises on the for loop (how to find the pairs that give the product 60; how to find the first N odd numbers following the number A)
- Other exercises on the for loop (how to find the pairs of natural numbers whose sum is 20; count the pairs that generate a negative, positive or zero product without performing the operation; count the pairs that generate a positive, negative or nothing without performing the operation)
- Examples of the use of for (Write the numbers from 1 to N skipping multiples of 3 – Write the first ‘n’ squares of the integers – Given two numbers m and n, write, count and add the numbers that are divisors of both)
- How to use nested loops
- Rectangles of asterisks with for loops
- How to make a pyramid of asterisks
- How to make an algorithm on the Harshad number
- Exercises on how to find the digits of a number in Python
- The Fibonacci sequence

### Python Tutorial – Lists and Tuples in Python

- Lists
- Python list len
- Count occurences in list in Python
- List method in Python
- Examples of lists in Python
- List for Python
- Slicing to extract a sublist
- How to use if with lists
- How to use the for loop with list
- Tuple
- What are the methods of lists
- Exercises with lists (how to populate a list of n elements with the first n even numbers – how to populate a list of n elements with the first n multiples of 5 excluding zero – insert n numbers of your choice).
- Other exercises with lists (how to add even and odd index elements separately – how to add even and odd elements separately)
- How to use randint with lists
- Exercises with the append method (how to select one out of three items and add up – how many values â€‹â€‹greater than 50 have been entered)
- How to populate a list of prime numbers in Python
- Exercises with the insert method (check how many values â€‹â€‹between 50 and 100 have been inserted – modify each element by subtracting the value 50)
- Add the digits of each number in a list
- List exercises in Python (modify only elements greater than 30 by subtracting half the number – build a list with an ascending sequence using insert)
- Exercises done in Python (count and display how many numbers not multiples of 3 have been entered – count and display how many prime numbers have been entered in the list)
- Python max()
- Method remove()
- Python Pop()
- A simple program: student grades
- Address book example

### Python Tutorial – Random Numbers in Python

- Random numbers
- Examples on random numbers
- Methods of random numbers
- Simple card game

### Python Tutorial – Functions and Modules

- Functions
- Function call
- Decimal to binary and octal converter
- The factorial of a number in Python

### Python dictionary

- Introduction to dictionaries in Python
- Use Python dictionaries
- Create dictionaries in Python
- Python get() method
- keys() method
- items() method
- pop() method
- popitem() method
- Sort dictionary in Python

### Python Tutorial – Search and Sorting

- Ricerca sequenziale
- Ricerca binaria
- Hashing
- Python List Sort
- Bubble sort
- Selection Sort
- Insertion Sort
- Merge Sort
- Quick Sort