🐍 Python Foundations
From your first print to functions — run every exercise in your browser.
1→2→3→4→5→6→7→8→9→10→11→12→13→14→15→16→17→18→19→20→21→22→23→24→25→26→27→
Lesson 1 — Hello, Python
basics · 5 min
Lesson 2 — Variables
basics · 6 min
Lesson 3 — f-strings
basics · 6 min
Lesson 4 — if / else
easy · 8 min
Lesson 5 — Loops
medium · 8 min
Lesson 6 — Lists
medium · 9 min
Lesson 7 — Functions
medium · 10 min
Lesson 8 — Dictionaries
medium · 9 min
Lesson 9 — String toolkit
medium · 8 min
Lesson 10 — Dictionary methods
medium · 8 min
Lesson 11 — Tuples & unpacking
medium · 7 min
Lesson 12 — Sets
medium · 8 min
Lesson 13 — enumerate & zip
medium · 8 min
Lesson 14 — Ternary expressions
medium · 7 min
Lesson 15 — Unpacking tricks
medium · 8 min
Lesson 16 — Putting it together
hard · 12 min
Lesson 17 — List comprehensions
hard · 10 min
Lesson 18 — Errors: try / except
hard · 10 min
Lesson 19 — Recursion
hard · 11 min
Lesson 20 — Mini project: word counter
hard · 12 min
Lesson 21 — Nested comprehensions
hard · 11 min
Lesson 22 — Custom exceptions
hard · 11 min
Lesson 23 — Memoization by hand
hard · 12 min
Lesson 24 — Mini project: word frequency (expert)
hard · 13 min
Lesson 25 — Decorators with arguments
very hard · 14 min
Lesson 26 — Context managers
very hard · 15 min
Lesson 27 — Ultimate: RPN calculator
★ ultimate · 18 min