Skip to content
Skip to page content
soylai.com

Exception Handling — Part 1: Errors, Exceptions, raise and assert

Beta
Lesson

Exception Handling

Part 1 — what goes wrong in programs: syntax errors, exceptions, the built-in exceptions, and how to signal problems with raise and assert.

In this lesson you will

  • Distinguish syntax errors, exceptions and logical errors
  • Identify the common built-in exceptions from code and from an error line
  • Raise exceptions deliberately with raise and check conditions with assert
Part 1 at a glance