Errors, Debugging, Validation, and Tests
Investigate failures systematically and prove a repair with tests.
Executable courseUse the text pages for explanation and the browser notebook for practice. Work stays in this browser unless you download it.
Module sequence
- Errors Are EvidenceUnit 1 · 18-25 minutes
- Reading TracebacksUnit 2 · 22-30 minutes
- Reproduce, Isolate, and InspectUnit 3 · 22-30 minutes
- Input ValidationUnit 4 · 25-35 minutes
- Exceptions and Narrow try/except BlocksUnit 5 · 25-35 minutes
- Raising Useful ErrorsUnit 6 · 20-30 minutes
- Assertions and Focused TestsUnit 7 · 25-35 minutes
- Debugging Generated CodeUnit 8 · 20-30 minutes
- Applied Checkpoint: Repair an Hours-Processing ProgramUnit 9 · 50-70 minutes
