What is the purpose of the assert statement in Python exception handling?
To catch and handle exceptions
To raise a custom exception
To check if a given expression is true, otherwise raise an 'AssertionError'
To ignore exceptions
This question is part of this quiz :
Python Exception Handling quiz