Q. What is the purpose of the ‘assert’ keyword?
Solution:
Assert is used to check conditions that should be true, throwing an AssertionError if false.
Get Question Bank
Strengthen Your Practice with our comprehensive question bank.
Assert is used to check conditions that should be true, throwing an AssertionError if false.
Strengthen Your Practice with our comprehensive question bank.