Python Craft Ladder
P4.python-craft.01 · Audience: guest, it-ml, language-pro
Reading Python, and even understanding it, is not the same skill as writing it — that skill only forms when you produce code yourself and something honest checks the result. This module is the platform's first graded practice: you write Python right here in the browser, run it, and have it tested, and because everything runs in Pyodide, a full Python compiled to WebAssembly, your code never leaves your machine. Each exercise is a three-panel workspace with instructions on the left, a code editor in the middle, and output plus test results on the right, where Run checks the visible tests you can read, Submit also grades a set of hidden edge cases so that hard-coding the shown answers cannot pass, and the reference solution unlocks once you succeed. Work down the ladder: each rung is a small, self-contained piece of Python craft with no data files to load.
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
Keeping your files on this device
Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.
Rung 1 — idioms
Loading exercise…
Rung 2 — build it from scratch
Loading exercise…
Rung 3 — clean it up
Loading exercise…
Rung 4 — explain your craft (free-form)
Loading exercise…
Explorer rung — naive vs idiomatic: predict where they disagree
Loading exercise…
Senior rung — refactor to production grade
Loading exercise…
Try it yourself
A scratch console for this page's ideas — ungraded, nothing you run here is recorded.
Scratch console
A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.
Output appears here.
My notes on this module
Loading your notes...