Examveda
Examveda

What is the purpose of the assert statement in Python?

A. To test if a given condition is True, and if not, raise an AssertionError exception

B. To handle exceptions

C. To print error messages

D. To ignore errors

Answer: Option A


This Question Belongs to Python Program >> Exception Handling In Python

Join The Discussion

Related Questions on Exception Handling in Python