0
Why is print(False == (False or True)) true but print(False == False or True) is false
I'm having trouble with this one has parentheses around true and false and the other one doesn't why do they have different answers
4 Answers
+ 1
thanks!
+ 1
any time @Keanu
0
Simple .. Let me explain
0 == (0 or 1) > 0 == 1 ? False
0 == 0 or 1 > anything or 1? True
when thinking False is 0
and True is 1 it became more simple
0
i cannot understand this
0 == (0 or 1) > 0 == 1