Skip to content

References: Error Handling and Debugging

  1. Exception handling - Wikipedia - Comprehensive overview of exception handling as a programming concept, covering try/except patterns, error propagation, and how languages like Python use exceptions to manage runtime failures.

  2. Syntax error - Wikipedia - Explains what syntax errors are, how compilers and interpreters detect them before execution, and includes examples directly relevant to the SyntaxError messages students will see in Python.

  3. Debugger - Wikipedia - Overview of debugging tools and strategies, including print-based debugging, breakpoints, and traceback reading — all core techniques introduced in this chapter.

  4. Python Crash Course (3rd Edition) — Eric Matthes — No Starch Press — Chapter 10 covers exceptions and the try/except/else/finally pattern with beginner-friendly examples that match this chapter's approach perfectly.

  5. Python for Kids — Jason R. Briggs — No Starch Press — Introduces error types and simple debugging strategies in an approachable style aimed squarely at young learners, making it an ideal companion resource for students ages 10–13.

  6. Python Errors and Exceptions - Python.org - The official Python tutorial section on exceptions, covering SyntaxError, ValueError, TypeError, try/except blocks, and the raise statement with clear, authoritative examples.

  7. Python Try Except - W3Schools - Step-by-step tutorial on try, except, else, and finally blocks with runnable examples; an excellent quick reference for students learning to catch and handle runtime errors.

  8. Python Exception Handling - Programiz - Beginner-friendly guide to Python exceptions including built-in error types, try/except syntax, raising exceptions, and the assert statement with worked examples.

  9. Python Exception Handling - Real Python - In-depth tutorial explaining the exception hierarchy, how tracebacks work, and best practices for handling errors — helps students understand why errors occur, not just how to silence them.

  10. Python Exception Handling - GeeksforGeeks - Reference page covering all common built-in exceptions (TypeError, ValueError, SyntaxError, etc.) with code examples, making it a useful lookup when students encounter unfamiliar error messages.

See Chapter Content