Python: Error Handling & Debugging

Wishlist Share

About Course

Learn to read Python error messages, handle exceptions with try, except, else and finally, raise your own errors with helpful messages, and track down bugs methodically using tracebacks, print and logging, assertions, the debugger and tests. All examples tested in Python 3.

Examples were tested with Python 3.13. Traceback formatting varies slightly between Python versions.

What Will You Learn?

  • Read tracebacks and understand common exception types Handle errors with try, except, else and finally Raise and define your own exceptions with clear messages Debug systematically with logging, breakpoints and simple tests

Course Content

Course Lessons

  • Reading error messages
  • Handling exceptions
  • Raising your own exceptions
  • Debugging systematically

Sources & Further Reading
The official guidance this course is based on.

Final Assessment

Student Ratings & Reviews

No Review Yet
No Review Yet

Want to receive push notifications for all major on-site activities?

✕