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

  1. Python Compiler
  2. Introduction and installation to Python
  3. Variables
  4. Assignment operators
  5. Strings
  6. Casting
  7. Print Python
  8. First exercises in Python
  9. Errors in Python
  10. How to make scripts in Python
  11. Swap the value of variables
  12. How to use the math module
  13. Comparison operators

Python Tutorial – Decision Control Structures

  1. If else
  2. elif Python
  3. Nested if
  4. Maximum between two numbers
  5. Maximum between three numbers
  6. Exercises Python if statement (fractions – null product without performing operations)
  7. Examples on conditional statements (corners)
  8. How to make the Chinese morra game
  9. If else example (Algorithms on triangles)
  10. Python exercises (equivalent figures, discount)

Python Tutorial – Iterative Structures in Python

  1. While loop
    1. Learn more about the while loop (countdown – infinite loop – loop never executed)
    2. While loop examples (counting even and odd – 2 times table)
    3. How to find the maximum of N numbers
    4. Exercises with the while (calculate the mean – sum interval)
    5. While exercise (subtract the minor from the major until their difference becomes less than 3 units)
  2. How to make an algorithm on prime numbers
  3. Prime numbers from 2 to N
  4. How to make an algorithm on friendly numbers
  5. Indefinite cycles
  6. How to use Euclide’s algorithm in Python
  7. For loop
    1. For loop insights (counting even and odd – average numbers)
  8. Break Python
  9. Continue and else

Python Tutorial – Exercises on iterative structures

  1. Guess the number game
  2. 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)
  3. 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)
  4. 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)
  5. How to use nested loops
  6. Rectangles of asterisks with for loops
  7. How to make a pyramid of asterisks
  8. How to make an algorithm on the Harshad number
  9. Exercises on how to find the digits of a number in Python
  10. The Fibonacci sequence

Python Tutorial – Lists and Tuples in Python

  1. Lists
  2. Python list len
  3. Count occurences in list in Python
  4. List method in Python
  5. Examples of lists in Python
  6. List for Python
  7. Slicing to extract a sublist
  8. How to use if with lists
  9. How to use the for loop with list
  10. Tuple
  11. What are the methods of lists
  12. 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).
  13. Other exercises with lists (how to add even and odd index elements separately – how to add even and odd elements separately)
  14. How to use randint with lists
  15. 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)
  16. How to populate a list of prime numbers in Python
  17. Exercises with the insert method (check how many values ​​between 50 and 100 have been inserted – modify each element by subtracting the value 50)
  18. Add the digits of each number in a list
  19. List exercises in Python (modify only elements greater than 30 by subtracting half the number – build a list with an ascending sequence using insert)
  20. 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)
  21. Python max()
  22. Method remove()
  23. Python Pop()
  24. A simple program: student grades
  25. Address book example

Python Tutorial – Random Numbers in Python

  1. Random numbers
  2. Examples on random numbers
  3. Methods of random numbers
  4. Simple card game

Python Tutorial – Functions and Modules

  1. Functions
  2. Function call
  3. Decimal to binary and octal converter
  4. The factorial of a number in Python

Python dictionary

  1. Introduction to dictionaries in Python
  2. Use Python dictionaries
  3. Create dictionaries in Python
  4. Python get() method
  5. keys() method
  6. items() method
  7. pop() method
  8. popitem() method
  9. Sort dictionary in Python

Python Tutorial – Search and Sorting

  1. Ricerca sequenziale
  2. Ricerca binaria
  3. Hashing
  4. Python List Sort
  5. Bubble sort
  6. Selection Sort
  7. Insertion Sort
  8. Merge Sort
  9. Quick Sort

Numpy

Pandas

Matplotlib

Matplotlib Plot

Seaborn