Python

Python from mental model through DSA patterns. 12 lessons, 5 phases — every code block runs in your browser via Pyodide.

Phase 0

Foundations

  1. 🐍 #0 Welcome + Python Mental Model How Python executes and why indentation matters
  2. 🏷️ #1 Variables, Types, and I/O Names, casting, and user input
  3. ⚖️ #2 Operators + Boolean Logic Comparison, identity, and truth
Phase 1

Core Python

  1. 🧭 #3 Control Flow if/elif/else, for, while
  2. 🧩 #4 Functions + Scope Reusable logic and clean code
  3. 🧰 #11 Python Core (Advanced) Iterators, generators, exceptions, files, modules
Phase 2

Data Structures

  1. 🧵 #5 Strings + Text Processing Immutability, slicing, formatting, and methods
  2. 📦 #6 Lists + Tuples Ordered collections and essential methods
  3. 🧩 #7 Sets Uniqueness + fast membership
  4. 🗺️ #8 Dictionaries Key-value mapping, methods, and internals
Phase 3

Problem Solving

  1. 🧠 #9 Complexity + Memory Model Big-O, mutability, and copying
Phase 4

OOP + Practice

  1. 🏗️ #10 DSA Patterns + OOP + Practice Two pointers, prefix sums, and clean design

Python

Learn Python by editing live examples in the browser, from first ideas to data-structure patterns.

A browser-based Python curriculum organized into ordered phases of lessons, from mental model up through data-structures-and-algorithms patterns. Every code block on every lesson page is editable and runnable in place via Pyodide, so the runtime is the same CPython semantics you'd get locally, just compiled to WebAssembly.

The Pyodide runtime is ~10 MB and downloads lazily on the first Run click, then caches for the session. The site started as a Rust+WASM curriculum before being ported to Astro+MDX in May 2026; the REPL was retrofitted onto every lesson a few days later. Start at lesson 1 or jump into the glossary.