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
1 Odpowiedź
+ 2
i think it's similar to if condition.
print(1) assert 2+2==5 #Code switches off print (3) assert 2+2==4 #Code switches on print (5) Output: 1 5