24
Found a weird bug in my first Python script and it took me 4 hours to fix
So I'm working through this tutorial for beginners on making a little text based game. I had this loop that was supposed to let the player choose a door but it kept skipping to the else statement no matter what. I must have stared at that 10 lines of code for like 4 hours last night. Turns out I was using a single equals sign instead of double equals in my if statement. Felt dumb but also kind of proud I found it myself. Did anyone else make that mistake when starting out? How long did it take you to catch it?
2 comments
Log in to join the discussion
Log In2 Comments
the_kevin1mo ago
My buddy spent six hours on that same exact bug.
5
margaret_kelly551mo ago
Six hours on ONE bug? That is ABSOLUTELY insane. I can't believe anyone would put that much time into a single problem. Did he at least find the fix in the end or was it a total waste of his day? I'd be pulling my hair out after the first hour, no joke.
3