Examveda

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


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python