check whether a condition is true and raises an AssertionError (optionally with a supplied error message) if it isn't. : Assert : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Assert »

 

check whether a condition is true and raises an AssertionError (optionally with a supplied error message) if it isn't.


age = 12
assert age >= 12'Children under the age of 12 are not allowed'



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Statement
» Assert