+ 1
if 6 == 6 :; print("True")
why... ? if 1+1*3 == 6: ; print("True")
4 Respuestas
+ 1
First it will perform multiplication 1*3 i.e,3
Next it will perform addition 1+3 i.e,4
Now it will check the condition if 4 is equal to 6 as its not true it will skip the if statements and goes to else part
+ 1
if (1+1)*3==6:;
print("True")
0
* has more precedence then +
1*3=3
3+1=4
4!=6(doesn't enter if loop)
0
OK, I got it!