From the course: Programming Foundations: Beyond the Fundamentals

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Interpreting error messages

Interpreting error messages

- When you run code that includes bugs, most interpreters provide some information about the error they encountered and where it was located. Occasionally these messages are straightforward and make it easy to find and fix errors but more often, these messages only provide a starting point for further research. Error messages can describe a general type of issue, rather than explain specifically what the issue might be in your code. And although interpreters often indicate where the issue cropped up while interpreting the code, the actual error may be in a different place in your code but only became a problem at the indicated point. So, it's important to take error messages as clues but not solutions. The compare.py file contains a variable definition followed by a conditional statement that prints a string. Immediately when I open it, I see a squiggle under the number 60. When I move my mouse over that code, the linter…

Contents