Home

Python tutorial for beginners: the complete learning path

31 lessons in the order to learn them, from your first line of code to Django, AI and databases. Follow the path, or jump to the topic you need.

1. Learn in order

Each level builds on the one before it, so start at Level 1 even if some of it looks familiar.

2. Practice as you go

Type the examples yourself, then test yourself with the Python quizzes.

3. Build something

Turn lessons into a finished program with the 100 Python projects list.

Advertisement

The learning path

Lessons are numbered in the order to read them.

Level 1: Python basics

6 lessons

Install nothing fancy yet: learn how Python runs and how to store data.

  1. Introduction to PythonWhat Python is and where it is used.
  2. Python Interactive ModeTry code instantly for quick tests and commands.
  3. Python Script ModeWrite and run Python scripts from files.
  4. Variables in PythonStore and manage data with variables.
  5. Data Types in PythonNumbers, strings and booleans.
  6. Python Introduction QuizCheck what you have learned so far.

Level 2: Data structures

5 lessons

Collections you will use in almost every program.

  1. Python ListsCreate and change lists.
  2. Python TuplesImmutable collections of items.
  3. Python SetsUnique collections and set operations.
  4. Dictionaries in PythonKey-value pairs and how to use them.
  5. Python IteratorsHow Python loops through objects.

Level 3: Functions

3 lessons

Reuse your logic instead of repeating it.

  1. What is a Function?A basic introduction to functions.
  2. Creating FunctionsDefine and call your own functions.
  3. Lambda FunctionsShort anonymous functions for quick logic.

Level 4: Object-oriented Python

4 lessons

Organise larger programs with classes.

  1. Classes and ObjectsAn introduction to object-oriented programming.
  2. InheritanceLet classes share behaviour and reuse code.
  3. PolymorphismWrite flexible code with common method names.
  4. Advanced PolymorphismGo deeper into design patterns and reuse.

Level 5: Real-world skills

7 lessons

The tools you need to write useful programs.

  1. Modules in PythonImport and organise code across files.
  2. File HandlingRead and write files.
  3. Exception HandlingHandle runtime errors gracefully.
  4. Working with JSONUse JSON data with Python dictionaries.
  5. Regular ExpressionsPattern matching and string searching.
  6. Regex PracticeExercises to test your regex skills.
  7. Python APIsCall web APIs with real examples.

Level 6: Build and go further

6 lessons

Apply what you know to apps, the web, data and AI.

  1. Python Projects for PracticeBuild projects with what you have learned.
  2. Python GUI with TkinterCreate your own desktop applications.
  3. Django TutorialBuild web apps with Django.
  4. Artificial IntelligenceGet started with AI using Python.
  5. Introduction to DatabasesLearn databases and use them from Python.
  6. Introduction to MongoDBLearn NoSQL and use MongoDB with Python.

Keep going

Advertisement

Featured Post

Python Math Module Quiz: 20 MCQs with Answers

Python Math Module Interactive Quiz Test your knowledge of Python's math module, mathematical functions, constants, rounding, powe...

Popular Posts