Module 01/How Python Works
Foundationconcept10 minuteslesson plan + live practice
Scripts, the REPL, and the Interpreter
Follow source code from a file to executed statements.
what you'll practice
Predict which lines run in three tiny programs, then compare script and interactive behavior.
how this lesson works
01
Predict
Commit to what the program will do before running it.
02
Diagnose
Use the prediction to distinguish competing misconceptions.
03
Repair & explain
Fix the model, then teach the reason back in your own words.
04
Transfer
Apply the concept to a different-looking problem before mastery.
recommended debugging practice
Numbers up to n
This runnable exercise matches the lesson's concepts closely. It includes visible tests, hidden edge cases, progressive hints, and a related transfer exercise.
Open debugging exercise →Go deeper