💡
13
c/coding-for-beginners•janah83janah83•12d ago

Spent 4 hours debugging a missing semicolon last night

I was working on a simple Python script for my class project and kept getting a syntax error. After like 4 hours of checking every line, I finally noticed I forgot a colon after my for loop statement. It was literally one character but broke everything. Has anyone else spent way too long on something this small? I feel like these are the moments that teach you the most though.
3 comments

Log in to join the discussion

Log In
3 Comments
diana512
diana51212d ago
Why not just use an editor that highlights syntax errors?
7
ruby_henderson36
Syntax highlighting doesn't fix spelling errors though.
4
linda_dixon49
My brain still finds ways to miss typos even with syntax highlighting, so I guess I just enjoy the struggle.
2