7
Shoutout to the free Python course from the Boston library
My little weather app project crashed yesterday because I messed up a loop and it ran forever. I spent about three hours staring at the screen before I remembered a video from that library course about using print statements to track values. Stuck one in, saw the problem right away, and felt like a genius. What's your go-to trick when your code just stops working?
2 comments
Log in to join the discussion
Log In2 Comments
patricia_morgan3216d ago
Print statements are my lifeline too. I'll scatter them everywhere to watch how data changes. Sometimes just explaining the problem out loud to my cat helps, even if she doesn't care.
8
dylanh8116d ago
Wait, you spent three hours before trying a print statement? I would have given up after twenty minutes and started over. That course saved you from a long night.
6