nothing is wrong with scattering print statements in your code
but you have more power with the interactive debugger
evaluate any piece of code
_modify_ running code
pause a loop when you get to a particular value