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