+ 4

It is quite unclear where you should use the assertion in a program. In this explanation, it isn't made clear and logical.

13th Feb 2017, 5:46 PM
Jens Meindertsma
Jens Meindertsma - avatar
3 Respuestas
+ 3
nontheless more examples how it's used in real programmes would be helpful
16th Feb 2017, 10:04 PM
Hannes Vogel
+ 1
apart from tests, assertion is rarely used in production code
17th Feb 2017, 3:34 AM
Amaras A
Amaras A - avatar
- 1
assertion, in Python, is a make to make sure an invariant is verified, and throw an exception if it is not
13th Feb 2017, 6:49 PM
Amaras A
Amaras A - avatar