O
12
c/coding-for-beginnerswillow_martinwillow_martin27d agoProlific Poster

Spent 5 days chasing a syntax error that was just a missing comma

My Python script kept crashing on line 12 and I rewrote half the program before noticing the comma after the last dictionary item, has anyone else wasted hours on something this dumb?
1 comments

Log in to join the discussion

Log In
1 Comment
patp79
patp7926d ago
Missing commas are one of those things that look obvious after you finally spot them, but they're easy to overlook when you're deep in the code. Rewriting half the program before checking the basics sounds rough, but sometimes that's just how our brains work when we're frustrated. Next time it might help to step back and read the error message line by line before changing anything.
4