Making Decisions: Control Flow¶
Programs that only run top to bottom are calculators. Control flow — choosing, repeating, and matching — is what turns a sequence of statements into logic that responds to data. We end with structural pattern matching, Python's most modern branching tool.