What does the assert statement do in Python?
Correct answer
C. Raises AssertionError if the condition is False
12 views
C. Raises AssertionError if the condition is False
12 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.