Lesson 67 of 79 · 15 minutes
Handling errors: try and except: Safety Net
Acrobats fall when a line fails, unless your code is there to catch them.
This game is part of the full course.You own the full course.
Unlock all 79 Python coding games for $9, once.Opening the game…
Unlock for $9Play now
What you'll learn
- Catching an error
- Saying something helpful
- Catching the right error
- Asking again
- Don't catch everything
Each idea opens with a short narrated video, about 2 minutes in all. Then you put it to work in the game.
The six levels
- Wrong Net Change it
- A Kind Word Copy and type
- Nobody Home Fill the gap
- Keep Asking Write it
- Hiding a Typo Fix it
- The Grand Finale Boss level
The levels go from changing one word, to writing the code on your own. The boss level changes every time you play.
New to Python? Start with the free games in Module 1.