Exercise Solutions

Worked solutions for the most concrete exercises across the path. Not every exercise — many are open-ended (“ship something public”) and don’t have a single answer. The ones here are code-shaped: the kind where seeing a working version teaches more than reading the question.

How to use: try the exercise yourself first. Then check here. Don’t look first.

If a solution disagrees with your working answer, run both and see which actually works. Solutions are sometimes wrong; tests aren’t.

Index

Each file has runnable code blocks. Code is tested for clarity; copy-paste should work in a fresh Python environment with the listed dependencies.

See also