Functions and Scope
Decomposing programs into named, reusable procedures with clear inputs and outputs.
Functions are the primary unit of decomposition in procedural programming. This chapter covers defining and calling functions, parameter passing by value, return values, and variable scope — the rules that determine where a variable is visible.