What does the assert statement do in Python?
Correct answer
C. Raises AssertionError if the condition is False
6 views
C. Raises AssertionError if the condition is False
6 views
assert condition, message is used for debugging checks.
Asked in: Python Interview Exception Handling
https://docs.python.org/3/tutorial/errors.htmlNot sure why the answer is C? Ask here and get an explanation.