Appreciation post: 45 minutes fighting a bug that was just a missing colon
I was stuck on a Python script for almost an hour last Tuesday, convinced my loop logic was broken, and I kept rewriting the same five lines over and over. Then I noticed the error pointed to the line above, and I had just left off a colon after my if statement. Part of me says the error messages should be clearer for new folks, but another part thinks reading tracebacks carefully is a skill you just have to build. Which side are you on, should a beginner trust the error line number right away or always check the line before it?