10
Tried adding comments to my code and broke everything somehow
Last night I was working on a simple Python script to sort my music files and decided to be good and add comments explaining each step. After adding like 15 lines of comments the whole thing stopped running and spat out a syntax error about indentation. Has anyone else had comments mess with their code structure for no reason?
3 comments
Log in to join the discussion
Log In3 Comments
morgan.logan29d ago
Happens with life too, add a note to something simple and suddenly you can't find your keys anywhere.
3
troy83229d ago
Oh man, that hits way too close to home. I literally spent 20 minutes looking for my phone yesterday while I was holding it in my other hand.
2
phoenix_thompson417d ago
Used to think comments could never mess anything up, troy832, but that indentation trap just changed my mind.
2