When a program stops, its traceback tells us where Python could no longer continue. When a program runs but prints the wrong number, there is no traceback to follow. In both cases, changing code by guesswork can hide the symptom without finding its cause.
We will use a connected set of small measurement cases throughout the chapter. First we locate an addition that received text instead of a number and trace that value backward. Then we investigate a mean that looks plausible but is wrong by comparing its intermediate state with a hand-worked case.
Once the cause is visible, the program still needs a policy. Some situations have a legitimate `None` result, some caller input should be rejected, some internal relationships should be asserted, and one expected conversion failure may be handled locally. The final lesson reduces the corrupted case, repairs its boundary, and keeps the original input as a regression check.