Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Working With Python's Built-in Exceptions (Summary)

You’ve learned about Python’s built-in exceptions, which provide a quick and efficient way to handle errors and exceptional situations in your code. Now, you know the most commonly used built-in exceptions, when they appear, and how to use them in your exception-handling code. You also learned that you can raise these exceptions in your code.

In this video course, you’ve:

  • Learned what errors and exceptions are in Python
  • Understood how Python organizes the built-in exceptions in a class hierarchy
  • Explored the most commonly used built-in exceptions
  • Learned how to handle and raise built-in exceptions in your code

Resources linked in this lesson:

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Already a member? Sign-In

00:00 Hey, you made it to the end of Working With Python’s Built-in Exceptions. Congrats! With this knowledge, you’re well equipped to deal with the variety of exceptions found in Python.

00:10 Now, when you encounter an error, rather than seeing an ominous stranger, you’ll instead be looking at an old friend, or at the very least, someone you once ran into at a party.

00:22 In this course, you’ve learned the difference between errors and exceptions in Python, techniques to both handle and raise exceptions in your code, how to navigate Python’s hierarchy of built-in exceptions, when and where you’ll encounter the most common exceptions, and how understanding built-in exceptions can help you write more maintainable Python programs.

00:44 If you’d like to see the exception hierarchy diagram in full and read about a few of the exceptions I couldn’t include in this video course, check out the source tutorial Python’s Built-in Exceptions: A Walkthrough With Examples.

00:57 And if you’re looking for something different for you, Python syntax buffs, there’s few tutorials more interesting than Syntactic Sugar: Why Python is Sweet and Pythonic.

01:09 But if understanding types, classes, and object-oriented programming is more your jam, dive into the details of Python’s type system with Getting to Know Duck Typing in Python.

01:20 And if you’re interested in the philosophical side of dealing with errors in Python, I got to recommend Look Before You Leap vs Easier to Ask Forgiveness Than Permission, Preventing or Handling Errors in Python, especially because I made the video course for it.

01:37 Okay, that’s a wrap. Once again, my name is Joseph and thank you for watching.

Become a Member to join the conversation.