Python Craft Ladder

P4.python-craft.01 · Audience: guest, it-ml, language-pro

Real LLM grading for this pageLLM grading (this page):

The first graded practice on the platform. You write Python right here in the browser, run it, and it is checked against tests — Codecademy-style, but the code never leaves your machine (it runs in Pyodide, a full Python compiled to WebAssembly).

Each exercise below is a three-panel workspace: instructions on the left, a code editor in the middle, and output + test results on the right.

  • Run checks the visible tests — the spec you can read under “Tests you must pass”.
  • Submit grades your code against a set of hidden tests (extra edge cases). Passing the visible tests is not enough; the hidden ones stop you from hard-coding the shown answers.
  • The reference solution unlocks once you pass.

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.

Ctrl/Cmd + Enter to send
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.

Where next?

Continue

Real Data Ladder

Python Craft Ladder · P4

Later in Python Craft Ladder