Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Python Basics!
You have completed Python Basics!
Preview
Exceptional situations happen in our code and you can handle them in preparation. Let's learn how.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
Now, that's a pretty negative
way of looking at the world.
0:00
But it's a pretty good way to think about
how users might use your application.
0:00
If they can break it, they will.
0:04
We've seen some syntax errors getting
thrown when we write improper code.
0:07
But as we just witnessed,
0:11
our users can also create errors
as our program is running.
0:12
When they don't do what
we expected them to do,
0:16
these types of errors
are called exceptions.
0:18
The experience for a user,
0:22
when we run into one of these exceptions,
can be pretty intense.
0:23
There's a stack trace and
some of our code even, and a message and
0:26
our program didn't even finish.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up