assert « Statement « Python Tutorial






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