Python Programming - Exception Handling - Discussion

Discussion Forum : Exception Handling - General Questions (Q.No. 18)
18.
What is the purpose of the AssertionError?
It is a generic exception raised for all assert statements
It is raised when an assertion fails
It is raised when an assert statement is not used
It is raised when a try block encounters an error
Answer: Option
Explanation:
The AssertionError is raised when an assert statement fails, indicating that a condition specified in the assert statement is False.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.