Python that actually matters for ML — interactive, in the browser.
Bools, floats, ints, and None vs False.
Division, chaining, walrus, is vs ==.
Loops, else clauses, and range surprises.
LEGB, mutable defaults, *args.
Copies, slices, and the * trap.
Immutability, interning, f-strings.
(1,) vs (1) — and mutable insides.
Key hashing gotchas, .get() vs [].
frozenset, unions, and dedup.
Class attrs, MRO, and super().
yield, exhaustion, and genexps.
try/except/else/finally order.
The ultimate boss chapter. Mutable defaults, late-binding closures.
Reshape, transpose, broadcast, matmul, softmax
Build every Transformer component from scratch in pure Python/NumPy.
A full PyTorch chapter.