Python
Go from writing Python to writing it well. Set up real projects with uv, write idiomatic, typed code with classes and dataclasses, master iterators, exceptions and context managers, and test everything with pytest. Then build things: reliable HTTP clients, concurrent programs with asyncio, and JSON APIs with FastAPI.
- 10 lessons
- 3 stages
- includes Learn to Code (optional)
- includes Git & Collaboration (optional)
- includes SQL & Databases (optional)
Also part of AI Engineer — progress here counts there too.
Your progress
0 / 10
required steps
+ 0/3 optional
- 01
Foundations
Projects, idioms and the type system that keep Python code maintainable.
- Lc
Step 01 · Roadmap · 9 lessons · optional
Learn to Code
New to programming? Learn the basics in Python first. Skip it if you can already write functions, loops and dictionaries.
0/9 - 02Projects & environmentsVirtual environments, uv, pyproject.toml, lock files and Ruff.
- 03Idiomatic PythonUnpacking, comprehensions, truthiness, EAFP and match.
- 04Classes & dataclassesMethods, special methods, properties, dataclasses and enums.
- 05Type hintsAnnotations, mypy, generics, TypedDict and Protocol.
- 02
Core language
The machinery behind loops, errors and cleanup, and tests that prove it all works.
- 06Iterators & generatorsThe iteration protocol, yield, lazy pipelines and itertools.
- 07Exceptions & context managersCustom exceptions, chaining, groups and reliable cleanup.
- 08Testing with pytestAsserts, parametrize, fixtures, fakes, mocks and coverage.
- Gt
Step 09 · Roadmap · 10 lessons · optional
Git & Collaboration
Version every project you build from here on.
0/9
- 03
Building things
Talk to other services, do many things at once, and serve your own API.
- 10Calling HTTP APIshttpx, timeouts, retries, pagination, Pydantic and offline tests.
- 11Async PythonCoroutines, TaskGroup, timeouts, semaphores and blocking calls.
- 12Web APIs with FastAPIRoutes, models, errors, dependencies and testing.
- Sq
Step 13 · Roadmap · 13 lessons · optional
SQL & Databases
Real APIs store data in a database. Learn PostgreSQL next.
0/13
- You made it.