Exercises — Outcome 9: Testing and Debugging
1 hands-on tasks. Do them in order; each one feeds the Canvas item it names.
30 min · hands-on
1. Bug Hunt
- Download the provided buggy_calculator.py file from Canvas.
- Identify and fix all three planted errors (one syntax, one runtime, one logic).
- Write an assert statement for each of the four calculator functions confirming correct output.
Turn in / bring: Fixed Python file with assert statements and a brief comment on each bug found, submitted to Canvas.