Skip to content
DoingCamp CS

Make it comfy

Lesson style

Quick mode shows the key picture, a summary and the practice. Good for a refresher.

Theme
Font

Both fonts are designed to be easy to read. Some readers with dyslexia prefer Lexend.

Text size
Spacing
Animations

Lesson 19 of 26 · about 14 min

When things go wrong

Errors are Python's way of saying "I can't do this." try/except lets your program catch an error and recover, and raise lets you signal your own.

🔓 Unlock this lesson

This lesson is part of the DoingCamp Pass. Members get every lesson in every course, with all the interactive visuals, coding exercises and challenges.

In this lesson you'll learn:

  • Exception
  • try / except
  • raise and assert

Free to try in F02 Programming 1: Thinking in Steps:

The first 3 lessons of every course are free, no account needed.