Debugging my calculator app went faster after I started writing the print statements before the code
I kept getting a wrong total on my tip calculator and spent 2 hours hunting for the bug with no clue where it lived. Then I started writing little print statements at the top of each function before I even wrote the math, so I could watch the numbers change step by step. Found the issue in 10 minutes: I was dividing by 100 twice on line 14 of my main.py file. Does anyone else write their debug prints first, or do you wait until something breaks?