F
19

Got stuck on a loop in my first Python project and my friend in Austin had to talk me down

I was trying to make a simple number guessing game last Thursday and wrote a while loop that just wouldn't stop, lmao. My terminal was spamming numbers forever until I closed it. My buddy Jake in Austin hopped on a video call and showed me I forgot to increment my counter variable inside the loop. Has anyone else had a loop just completely run away on them like that?
3 comments

Log in to join the discussion

Log In
3 Comments
derek_ross
derek_ross20d ago
Classic beginner move right there. Forgot my own increment once and crashed a whole script, felt like a real genius that day.
9
the_eric
the_eric20d agoMost Upvoted
Nah, infinite loops are just sloppy coding.
7
victor651
victor65120d ago
Oh man, that's a classic right there! I read an article once that called infinite loops a programmer's "first right of passage." It happens to EVERYONE before they get the hang of variable scope. Your friend Jake is a real one for the rescue.
0