0

Does assertion doesn't mean switching on or off the code?

print(1) assert 2+2==5 #Code switches off print (3) assert 2+2==4 #Code switches on print (5) Output: 1 5

4th Sep 2016, 4:33 AM
proRam
proRam - avatar
1 Respuesta
+ 2
i think it's similar to if condition.
4th Sep 2016, 5:10 AM
beauty1234