0
Can anyone explain, what does this mean:"Unlinke other exception if assertion is not handled, then program is terminated?
2 Réponses
+ 7
If "assertion" throws an error and is not handled by "try-catch" blocks, the program terminates/ends.
0
Actually it is true of any exception (except maybe StopIteration in for loops and GeneratorExit) but an assertion guarantees that your program is used in the conditions you wanted (or didn't assert for)