What is the purpose of the assert statement in Python?
A. It checks if a given condition is true, and raises an exception if it's false
B. It defines a new variable
C. It specifies the return type of the function
D. It is used to create a loop
Answer: Option A

Join The Discussion