Python · Errors, debugging and testing

Debug by testing a guess

Changing lines at random until the output looks right can hide a bug; a guess you can test finds it on purpose.