28 Aug '16, 2am
Using ‘puts’ statements are critical for figuring out solutions to these problems. If some part of your code isn’t working, a ‘puts’ statement could help figure out where the code is broken, and how to fix it. It’s definitely an art and a science to figuring out where to ‘puts’ statements should go, but with practice you get better at figuring out flow of control and how ‘puts’ statements can help debug code. Here’s an article for using print statements to debug python.