Got stuck on a loop for 6 hours at 2am last Tuesday and almost quit learning to code
Last Tuesday I was working on a simple fizzbuzz exercise in Python on my laptop at the kitchen table and the terminal kept printing nothing. I rewrote the same 5 lines at least 12 times, changed the indentation, restarted my laptop twice, and still got a blank screen. Around 2am I finally saw it: I was calling the function but never telling it to print the result inside the loop, so everything was happening silently. It was such a dumb fix after 6 hours of wanting to throw the thing out the window, and I only caught it because I pasted the code into a forum and someone asked 'where does it actually show the output?' What dumb little mistake like that has eaten a whole night for you when you were just starting out?