Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
It is rather just a testing tool. Assert is a statement, that can be used to raise an error, when it's condition is False: assert condition, optional_error_message It can be used to break the program, when something makes no sense
13th Aug 2019, 9:21 AM
Seb TheS
Seb TheS - avatar