Scope and closures

Which name refers to what, and when. Includes the late-binding closure — why a list of functions built in a loop can all end up seeing the last value.

advanced~2hWe mark it against a checklist you can read first
The barWhat counts as knowing this

Predict which value a nested function sees, and fix a late-binding closure

That sentence is the bar. It only counts once your work shows you can do it. Reading about it does not.
Prove itA check for this one skill

Up to 2 questions on this skill alone, marked against the bar beside this. It stops as soon as the answer is clear. No account, and your answers are not kept.

01 · Prerequisites

You'll need these first

02 · Also helpful

Helpful, but not required

Start on Python Fundamentals

Every skill above, ordered by what depends on what, with the projects above that as the evidence you actually did it. We work out where you already are first, so the path skips what you can do.

About three minutes to set up. Nothing is marked until you hand something in.Start this path
Part of Python Fundamentals.

One cookie, so we can see which subjects people finish and where the site loses them — plus a replay of where you click. Nothing you type is recorded, and once you’re signed in the words on screen are blanked out too. No advertising, nothing sold. The detail.