Vidyalelo
Python · Q79

Functions in Python

Programming · Python · question 79

Q79

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
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board