×
Menu
Index

5 Troubleshooting Error Messages

Where a Python Script contains an error, it will typically be flagged to the user in the console at runtime. Python error messages are typically very helpful and make debugging Python code relatively straightforward. The console will typically display the line number of the problem code, as well as a ‘^’ symbol showing the user where it thinks the problem has occurred. It is not always correct, however it will usually point the user in the right direction. In many cases the most effective approach to solving an error in Python code is to copy and paste the error message into a search engine such as Google. This section will detail some of the common Python errors that beginners may encounter.