Big idea. Programs fail; what matters is that you can read the failure, handle the expected ones, test the edges and fix the cause once.
Outcomes served. O5 (test and debug programs).
Plan your six hours
| Part | Minutes |
|---|---|
| Opener and orientation (this page) | 15 |
| M7.L1 Reading errors | 55 |
| M7.L2 try and except | 50 |
| M7.L3 Testing | 50 |
| M7.L4 Debugging | 50 |
| Practice set | 35 |
| Lab: Read, handle, test, debug | 50 |
| Mastery checkpoint | 30 |
| Discussion prompt and recap | 25 |
| Total | 360 (6 hours) |
Assumed. Modules 1 to 6: variables, decisions, loops, collections, functions and files.
Where this topic appears in practice. A failed payment, a crashed report and a wrong total all start as errors. This module shows how to read, handle, test and fix them.
Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.