13
Finally got my first Python script to run without errors after 6 tries
I found out that a single missing colon was breaking my whole loop, and I only noticed because I watched a 3-minute YouTube video that zoomed in on the exact line. Has anyone else spent way too long hunting down tiny syntax mistakes that seem obvious after you find them?
2 comments
Log in to join the discussion
Log In2 Comments
mark_fisher4815d ago
I read somewhere that beginners spend about 30 percent of their coding time tracking down missing colons and parentheses.
10
lily_sullivan8215d ago
Did you end up staring at the screen for like an hour before you found it? I feel your pain, it's always the smallest stuff that trips you up the most. I remember my first week learning Python I spent a whole afternoon hunting down a missing parenthesis in a print statement. It's so frustrating because once you see it you feel dumb, but those tiny errors are just part of the deal when you're starting out. Have you tried using an editor that highlights syntax, it helps catch some of those things before you even run the code?
3