Why is print(False == (False or True)) true but print(False == False or True) is false | SoloLearn: Learn to code for FREE!

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

8/20/2017 7:16:01 PM

Keanu Big Eagle

4 Answers

New Answer

+1

+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