H
20

Just realized everyone in my Python class keeps skipping the error messages

They just copy the red text into Google instead of reading it, which is why they're stuck on the same loops for days. Has anyone else found a good way to actually learn how to read those things?
3 comments

Log in to join the discussion

Log In
3 Comments
the_sarah
the_sarah14d ago
Wait, are people really googling the whole red wall of text instead of just reading the last line first? That feels like overcomplicating things. The last line is where Python tells you exactly what broke, like "NameError: name 'x' is not defined" or "IndexError: list index out of range." If you just look at the last line and the line number it points to, you can usually fix it in seconds. The rest of the trace is just context, not the actual problem.
4
lewis.diana
The last line of an error message usually tells you exactly what went wrong.
2
nathanbennett
My Python stack trace says "good luck with that.
4