O
28

My first Python script broke because I forgot to indent a line.

I spent an hour last Thursday trying to figure out why my simple loop wouldn't run. Has anyone else had this happen when they were starting out?
3 comments

Log in to join the discussion

Log In
3 Comments
the_robin
the_robin2mo ago
Honestly that hour you spent is such a universal starter experience. Tbh I see this everywhere, like how one tiny typo in a web address gives you a 404 error. It's wild how the smallest, most invisible detail can completely break a system. Makes you appreciate all the hidden rules in things we use every day.
2
the_pat
the_pat2mo ago
Ugh, that's the worst feeling. I swear every programmer has a story about fighting with a missing colon or a typo. What was your script supposed to do?
2
lucasking
lucasking1mo ago
Used to hate indentation rules but now I see they keep things clean.
2