Python Exceptions: An Introduction Quiz – Real Python

Interactive Quiz ⋅ 7 Questions
By Martin Breuss

In this quiz, you’ll test your understanding of Python exceptions.

You’ll cover the difference between syntax errors and exceptions and learn how to raise exceptions, make assertions, and use the tryexcept block.

The quiz contains 7 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

An Introduction to Python Exceptions

An Introduction to Python Exceptions

Course

Raising and Handling Python Exceptions

In this course, you'll learn what an exception is and how it differs from a syntax error. You'll learn about raising exceptions, making assertions, and catching exceptions to change the control flow of your program using the try, except, else, and finally keywords.

basics python

An Introduction to Python Exceptions