StayTalentReady

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

  1. Download the provided buggy_calculator.py file from Canvas.
  2. Identify and fix all three planted errors (one syntax, one runtime, one logic).
  3. 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.
← Outcome 8Meerk's quiz →

↑ Back to top