3.4 Error Handling
Completion requirements
Go through the activity to the end
Errors

Taking input from a user, and then validating it, is a rather big topic on its own that we could not do justice in this introductory course.
Nonetheless, your code should to some extent be prepared for things to go wrong.
As you begin writing scripts, you'll notice something important: sometimes Python doesn't do what you expect. Instead, it stops and shows you a message. This is an error message.
Errors are not always a bad thing. They are Python's way of telling you what went wrong and where to look. The good news is: with practice, these error messages become helpful hints instead of confusing roadblocks.
In this lesson, we'll look at:
- What kinds of errors can happen
- How to read error messages
- How to prevent or handle errors in your code