Try Out Things Safely!

Learn how to catch and handle user input errors safely.

Our code can now make decisions, but what happens when something goes wrong?
In this lesson, we’ll learn how to use try and except to handle errors and keep our programs from crashing.


Break something (on purpose)

Try running this:

Get hands-on with 1400+ tech skills courses.