+ 4
It is quite unclear where you should use the assertion in a program. In this explanation, it isn't made clear and logical.
3 Answers
+ 3
nontheless more examples how it's used in real programmes would be helpful
+ 1
apart from tests, assertion is rarely used in production code
- 1
assertion, in Python, is a make to make sure an invariant is verified, and throw an exception if it is not