Lesson 68 of 79 · 15 minutes
Checking data and raising errors: Customs Check
Inspect luggage records, and turn back anything that isn't right.
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
- Check before you use it
- Raising your own error
- Catching your own error
- else and finally
- Checks that let bad data through
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
- Weigh It Change it
- Refuse It Copy and type
- Read the Message Fill the gap
- Next Please Write it
- Slipping Through Fix it
- The Long Queue 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.