8
My first Python script printed the same line 10,000 times
I was at my kitchen table trying to make a simple loop to count to ten. I messed up the indentation and used a print command inside the wrong block. Suddenly, my terminal just kept scrolling the same sentence over and over. I panicked and closed the whole program, losing my work. What's the silliest mistake you made when starting out?
2 comments
Log in to join the discussion
Log In2 Comments
simonp479d ago
Oh, the classic runaway print loop. I did something just like that, but with a while loop I forgot to increment. I left it running to grab a coffee and came back to a completely frozen terminal. Had to force quit and everything. It’s a right of passage, really. Makes you double-check your conditions forever after.
2
reesemoore8d ago
Been there, done that lol.
3