How to use this tutorial
1. Read, then run
Every code box has ▶ Run. The first run takes a few seconds while Python loads in your browser.
Every code box has ▶ Run. The first run takes a few seconds while Python loads in your browser.
2. Break things
Click Edit, change the code, run again. Errors are how you learn what Python expects.
Click Edit, change the code, run again. Errors are how you learn what Python expects.
3. Do the exercises
Try each one yourself before opening the solution. Then press Mark lesson complete.
Try each one yourself before opening the solution. Then press Mark lesson complete.
Also install Python on your computer: The browser runner is for practice. Real projects run on your machine. Lesson 1.1 shows how to set it up. Some examples (network calls, threads, user
input()) are marked "run on your computer".Course map
1 · Basics → 2 · Data structures → 3 · Functions & modules → 4 · OOP → 5 · Advanced Python → 6 · Real-world Python → Projects
Suggested pace for interns
| Day | Lessons | Outcome |
|---|---|---|
| Day 1 | 1 – 7 (Basics) | Write programs with variables, strings, conditions and loops |
| Day 2 | 8 – 11 (Data structures) | Handle real data with lists, dicts and sets; write comprehensions |
| Day 3 | 12 – 16 (Functions, modules, files, errors) | Structure code into reusable functions; read and write files safely |
| Day 4 | 17 – 20 (OOP) | Model business objects with classes and dataclasses |
| Day 5 | 21 – 26 (Advanced) | Generators, decorators, context managers, type hints, regex, concurrency |
| Day 6 | 27 – 30 + Projects | Dates, money, SQLite, APIs, testing; build all 4 projects |