Python Programming - Conditional Statements - Discussion
Discussion Forum : Conditional Statements - General Questions (Q.No. 14)
14.
What is the purpose of the
assert statement?Answer: Option
Explanation:
The
assert statement is used to test if a given condition is true, and if not, it raises an AssertionError with an optional error message.
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers