H
22

My first program ran 100 times before I realized it was just printing 'hello world'

Tbh I was following a Python tutorial and wrote a simple loop. I set it to run 100 times as a test, but I forgot to add the counter variable. I sat there for a full minute watching 'hello world' fill my screen, thinking I'd done something amazing. It was just the same line over and over. Anyone else ever get tricked by their own beginner code like that?
3 comments

Log in to join the discussion

Log In
3 Comments
julia843
julia84328d ago
Remember spending ten minutes debugging a print statement that was just working fine.
2
evan151
evan15111d ago
@julia843 I once blamed a ghost for a missing comma and it was just me forgetting to save.
4
grant_palmer
My 2019 project had a print that only failed on Tuesdays.
3