Python tutorial

tutorial python

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
  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
  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. Fibonacci sequence in Python
  11. Chek if a number is Fibonacci

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
    • Examples of lists in Python
  5. List for Python
  6. Slicing to extract a sublist
  7. How to use if with lists
  8. How to use the for loop with list
  9. Tuple
  10. What are the methods of lists
  11. 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)
  12. How to populate a list of prime numbers in Python
  13. Add the digits of each number in a list
  14. Python max()
  15. Method remove()
  16. Python Pop()
  17. A simple program: student grades
  18. Address book example

Python Tutorial – Random Numbers in Python

  1. Random number in Python
  2. Methods of random numbers
  3. Simple card game

Python matrix

  1. Create Python matrix

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
  5. Python lambda function

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

Files

  1. File operations in Python
  2. Python open() function
  3. Python write to file
  4. Insights into the write() method
  5. Python readline()
  6. Python readlines()
  7. Metodo read() in Python sui file
  8. How to write to text file in Python
  9. Random number file writer
  10. Esercizio sui files 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

Machine Learning

  1. Machine Learning
  2. Machine Learning with Python

Numpy

Pandas

Matplotlib

Matplotlib Plot

Seaborn