Big idea. A function turns a repeated job into one named, tested tool, and clear inputs and outputs keep it from breaking other code.
Outcomes served. O5 (design and use functions to organise a program).
Plan your six hours
| Part | Minutes |
|---|---|
| Opener and orientation (this page) | 15 |
| M5.L1 Define and call | 55 |
| M5.L2 Parameters and return | 50 |
| M5.L3 Scope | 50 |
| M5.L4 Designing functions | 50 |
| Practice set | 35 |
| Lab: Trace, repair and write | 50 |
| Mastery checkpoint | 30 |
| Discussion prompt and recap | 25 |
| Total | 360 (6 hours) |
Assumed. Modules 1 to 4: variables, decisions, loops, lists and dictionaries.
Where this topic appears in practice. A tax rule, a unit conversion and a discount all repeat across a business. A function holds each rule once, so one correction fixes every use.
Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.