Unit D10-U03 · Python and computational problem solving
Functions, modules, and error handling
Separate a task into testable functions.
Outline only
This is an outline, not a lesson yet
The full lesson for this unit has not been written. This page shows what it is planned to teach, how long it is planned to take, and the reading chosen to support it. No explanation, worked example, quiz or task is published for it yet. See content status.
Planned outcome
Separate a task into testable functions.
How it would be assessed
Assessed outcome: Separate a task into testable functions.
Evidence: A task artifact demonstrating the stated action, a verification or comparison record, and a short explanation of uncertainty or failure. Use a new input for the completion check. Allocate the scheduled time across reading, demonstration, lab, quiz, and feedback rather than treating it as reading alone.
Planned time and place
- Planned time
- 5 h in total, including practice and assessment (a planning figure, not tested with learners)
- Module
- D10: Python and computational problem solving
- Chapter
- D10-C02: Functions and data
- Prerequisite modules
- A20
- Used in programs
- P06, P07
Selected reading for this topic
Core reading
- Think Python, 3rd edition Functions, iteration, collections, files, and reasoning about small programs.Try it: Separate a task into testable functions.About this reference (B04)
Supporting reading
- Python tutorial Use as a syntax/reference companion after Think Python: the official tutorial explicitly assumes prior programming familiarity.Try it: Separate a task into testable functions.About this reference (W09)
Reading is chosen to support the outcome; none of it is compulsory homework. Links go to the owners' own sites and some resources cost money. Reviewed 2026-11-17.