Indentation is the control flow
Explain how indentation changes program behavior and review a block safely.
The move: Treat indentation as logic Python uses indentation to define blocks, so a visual nudge is also a behavior change. Four spaces per level is not cosmetic; it makes nesting predictable and keeps reviews from becoming archaeology. PEP 8 frames style as a tool for readability, not decoration. The official tutorial teaches the same bias through examples: write the thing you mean, choose the built-in shape that matches the data, and keep the control flow visible. When a script moves from personal scratchpad to shared work, the cost of cleverness rises. Names, indentation, data shape, and explicit error behavior…
Sign up free — one personalized lesson every day, matched to your role and goals.
Already have an account? Sign in