+ 3

What happens if the assertion is true? And what is the basic idea behind these assertions?

20th Aug 2016, 5:39 PM
Eashwar Balaji
Eashwar Balaji - avatar
2 Answers
+ 2
it means it only return False or True..if false raise assertion error and stops next instructions in its vicinity..if true No error ,and continue the execution.... assertion is useful for testing the functions...or conditions that we write.
28th Aug 2016, 12:02 PM
B. Chaithanya krishna
B. Chaithanya krishna - avatar
+ 1
When it true it can insert to the if part, and do what you want. the program not stop as error aqured. You useuly use assertions for testing.
20th Aug 2016, 7:43 PM
‫Ido Tal
‫Ido Tal - avatar