Python · 18 phases · 177 topics · ~83 h
The Python Roadmap
Every phase is labelled by level so you can start where you are. Each topic opens with a real-life analogy, then commands and code you run yourself, then questions with reveal answers. Progress is saved as you go.
Where should I start?
Pick a path for your goal
Complete beginner
Never programmed before. Start at the very first topic: every word is explained.
Job-ready Python developer
You know the basics and want the depth and tooling employers expect.
Heading into AI
Your goal is AI work. New to coding? Do the complete-beginner path first, then these: the Python every AI library, model API and agent is built on.
The full curriculum
Values, Variables and Types
Beginner ~5 h0/11 · 0%Numbers, text and true/false values, the names that hold them, how Python turns one kind of value into another, and how to show results clearly.
- Variables: Names That Point to Values
- Whole Numbers: int
- Decimals: float and Why 0.1 + 0.2 Isn't 0.3
- True, False and None
- Strings: The Basics
- Checking and Converting Types
- Arithmetic, Precedence and Augmented Assignment
- Comparisons and Logic
- Printing and f-strings
- Reading Input with input()
- Comments, Names and PEP 8
Lists, Tuples, Dictionaries and Sets
Beginner ~5 h0/11 · 0%Lists, tuples, dictionaries and sets: how each works inside, how to copy them safely, the collections toolbox, and how to choose the right one.
- Lists: Ordered, Changeable Collections
- Slicing, Sorting and Searching Lists
- Tuples and Unpacking
- Dictionaries: Look Things Up by Key
- How Dictionaries Work: Hashing
- Sets: Unique Items and Fast Membership
- List, Dict and Set Comprehensions
- Nested Data: Lists of Dicts and Friends
- References, Shallow Copy and Deep Copy
- The collections Toolbox
- Choosing the Right Structure and Its Cost
Errors, Files and Data Formats
Intermediate ~6 h0/12 · 0%Handle errors on purpose, read and write files safely, speak CSV, JSON, TOML and YAML, log like a professional, and debug with real tools.
- Exceptions: try, except, else, finally
- Raising Errors and Custom Exception Classes
- Exception Groups and except*
- Context Managers and with
- Reading and Writing Text Files
- Paths the Modern Way: pathlib
- CSV and JSON
- TOML, YAML, Pickle and Binary Data
- Logging Instead of print
- Debugging: breakpoint(), pdb and Reading State
- Dates, Times and Time Zones
- XML and HTML: Reading Markup
Object-Oriented Python
Intermediate ~5 h0/12 · 0%Classes, objects, inheritance, the data model, dataclasses, enums and protocols: how to model real things in code and design classes that stay easy to change.
- Classes and Objects
- Instance vs Class Attributes
- Instance, Class and Static Methods
- Properties and Encapsulation
- Inheritance and super()
- Multiple Inheritance, Mixins and the MRO
- Special Methods: The Python Data Model
- Dataclasses
- Enums
- Abstract Base Classes and Protocols
- Composition over Inheritance and Good Class Design
- __slots__ and Object Memory
Type Hints and Modern Python
Intermediate ~4 h0/9 · 0%Label what your values are, let a checker catch mistakes before you run, read hints at run time, and write Python the way current versions intend.
- Type Hints: What They Are and Aren't
- Typing Collections, Optional and Unions
- Running a Type Checker: mypy and pyright
- Generics and Type Variables
- TypedDict, NamedTuple, Literal and Final
- Protocols and Structural Typing
- Types at Run Time: Annotations, get_type_hints and Validation
- Pattern Matching in Depth
- Writing Modern Python: An Idiom Upgrade
Concurrency and Async
Advanced ~4 h0/9 · 0%Threads, processes and asyncio: what the GIL really does, how to run hundreds of LLM calls at once, and how to choose the right tool without guessing.
- Concurrency vs Parallelism: Threads, Processes, Async
- The GIL and Free-Threaded Python
- Threads with threading
- Thread and Process Pools: concurrent.futures
- multiprocessing
- asyncio: async and await
- Running Things Together: gather, TaskGroup, Timeouts
- Async Iterators, Generators and Context Managers
- Choosing and Debugging Concurrency
Python for APIs, Services and Tools
Intermediate ~5 h0/10 · 0%Call web APIs safely, validate data with Pydantic, build a FastAPI service, use databases, write command-line tools, automate work and ship it in a container.
- Calling Web APIs: HTTP with httpx and requests
- Robust API Clients: Retries, Backoff and Rate Limits
- Configuration, Environment Variables and Secrets
- Data Validation with Pydantic
- Building an API with FastAPI
- Databases from Python: sqlite3 and Beyond
- Command-Line Tools: argparse and Typer
- Automation Scripts: Files, Dates and Subprocesses
- Shipping Python: Docker and Deployment
- Collecting Web Data Responsibly
Python in the AI Era
Advanced ~6 h0/14 · 0%How Python powers AI work: the library map, calling models, tokens, streaming, structured output, RAG, agents, evals, ML basics, PyTorch and AI assistants.
- The AI Python Landscape: Which Library Does What
- Jupyter Notebooks and the Experiment Workflow
- Calling an LLM API from Python
- Tokens, Context Windows, Cost and Rate Limits
- Streaming Responses with Generators and Async
- Structured Output: JSON, Schemas and Pydantic
- Prompts as Code: Templates, Few-Shot and Versioning
- Embeddings and Similarity Search with NumPy
- Retrieval-Augmented Generation from Scratch
- Tool Calling and an Agent Loop from Scratch
- Testing and Evaluating AI Code
- Classic Machine Learning in One Sitting: scikit-learn
- Tensors and PyTorch: A First Look
- Writing Python with AI Assistants
Interviews and Capstone
Advanced ~5 h0/10 · 0%Answer the Python questions interviewers really ask, with a runnable proof for each, then build and ship a complete document question-answering tool.
- Interview Deep Dive: Core Language Questions
- Interview Deep Dive: What Does This Print?
- Interview Deep Dive: OOP and Internals
- Interview Deep Dive: Coding Rounds in Python
- Interview Deep Dive: Python in Production
- Capstone: Plan a Document Question-Answering Tool
- Capstone: Build the Core Library
- Capstone: CLI, Config, Logging and Streaming
- Capstone: Test, Package and Ship It
- Where to Go Next: AI Engineer, Forward Deployed Engineer, AI Scientist