5
My first program ran without an error after 47 tries
I was just trying to make a simple tip calculator in Python and kept getting 'invalid syntax' messages. The 47th time, I realized I'd forgotten a colon after an if statement. Has anyone else had a bug that was just one tiny character?
3 comments
Log in to join the discussion
Log In3 Comments
robinl9023d ago
Missing a single quote or bracket can ruin your whole day... spent an hour once because I had a comma instead of a period in a config file.
10
susan_henderson1d ago
Ever had one of those days where you find the problem right after you give up and walk away? Tbh, I once lost a whole afternoon to a typo in a file path. It was just one wrong letter, like "img" instead of "imgs". The whole thing just silently failed. You stare at it so long the words stop making sense.
8
mitchell.wade23d ago
Honestly, 47 tries for a missing colon sounds like a tool issue. A decent editor would flag that immediately.
6