Free · Interactive · Runs in your browser

Understand Python, not just use it.

A four-part deep dive into how Python really works: memory and references, functions and closures, iterators and generators, hash maps, and object-oriented programming down to metaclasses. Every example runs right here, with nothing to install.

Read

Clear lesson notes with diagrams, one lecture at a time.

Run

Edit and run every example. A real Python 3.13 interpreter runs in your browser.

Practice

Each section ends with a quiz and auto-graded coding exercises.

The course

4 parts · 47 sections · 329 lectures. Progress is saved in this browser.

Part 1

Functional

Variables and memory, numeric types, functions, closures, decorators, tuples, modules and packages.

10 sections
Part 2

Iteration, Generators

Sequences, iterables and iterators, generators, iteration tools, context managers and generator-based coroutines.

13 sections
Part 3

Hash Maps

Dictionaries, sets, hashing, serialization, and the specialized dictionaries in the standard library.

10 sections
Part 4

OOP

Classes, properties, special methods, inheritance, slots, descriptors, enumerations, exceptions and metaprogramming.

14 sections

Before you start

This course goes deep. It assumes you can already write basic Python: variables, if, loops, functions. If you're rusty, start with Part 1 · Section 02: A Quick Refresher.

Credits

This site follows the structure of Dr. Fred Baptiste's Python 3: Deep Dive course series on Udemy (Parts 1–4) and builds on his GPL-3.0 licensed python-deepdive notebooks. The lesson notes, quizzes and exercises here are written independently. For the full video lectures, take the original courses on Udemy.

More about this site and its license →