G
1

PSA: I tried to make a simple number guessing game in Python and it just kept printing the same wrong answer over and over.

Turns out I put the random number generator inside the loop, so it picked a new target every single guess, and I only figured it out after staring at my screen in a coffee shop for like 45 minutes.
3 comments

Log in to join the discussion

Log In
3 Comments
elizabeth_martin
Read that's a classic beginner mistake.
10
river_rivera45
river_rivera4528d agoTop Commenter
How many times have I done that exact same thing?
2
nora_coleman69
You ever think that's the best way to learn?
2