New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What is mean by assert in python
2 Answers
0
assertion checks that condition is True and throws exception otherwise
0
assert means your program requests the assertion to be true.
If it is not, an error is raised and the program stops.