Python · From your first print to idiomatic, tested Python
Python, start to finish
A friendly language for everything from scripts to data and the web. Every lesson is a small machine you can step through, then a short quiz.
0 of 29 available lessons completed
Module 01 Beginner
Basics
Running Python, values, variables, decisions and loops.
-
Lesson 01 · 10 min
Getting started with Python
9 steps0/2 exercisesNot started -
Lesson 02 · 12 min
Numbers and strings
9 stepsNot started -
Lesson 03 · 10 min
Variables and names
8 stepsNot started -
Lesson 04 · 12 min
Input and output
9 stepsNot started -
Lesson 05 · 12 min
Conditionals
10 stepsNot started -
Lesson 06 · 12 min
Loops
10 stepsNot started
Module 02 Beginner
Collections and functions
Lists, dicts, comprehensions and functions.
-
Lesson 07 · 12 min
Lists and tuples
8 stepsNot started -
Lesson 08 · 12 min
Dictionaries and sets
9 stepsNot started -
Lesson 09 · 12 min
Comprehensions
10 stepsNot started -
Lesson 10 · 12 min
Functions
9 stepsNot started -
Lesson 11 · 12 min
Arguments: defaults, *args and **kwargs
10 stepsNot started -
Lesson 12 · 12 min
Scope
10 stepsNot started
Module 03 Intermediate
Real programs
Files, errors, modules and packages.
Module 04 Intermediate
Objects
Classes, inheritance and Python's special methods.
Module 05 Advanced
Idiomatic Python
Generators, decorators, context managers, typing, async and testing.
-
Lesson 21 · 14 min
Iterators and generators
9 stepsNot started -
Lesson 22 · 14 min
Decorators
10 stepsNot started -
Lesson 23 · 14 min
Context managers
11 stepsNot started -
Lesson 24 · 12 min
Type hints
9 stepsNot started -
Lesson 25 · 14 min
asyncio
10 stepsNot started -
Lesson 26 · 14 min
Testing with pytest
11 stepsNot started
Module 06 Advanced
Under the hood
How CPython runs your code and manages memory.
Go deeper
Special topics
Stand-alone deep dives.