Why is False == (False or True) --> False | SoloLearn: Learn to code for FREE!


Why is False == (False or True) --> False

This seems to me that this equation would look at whether (False or True) were equal to False. By that logic this would return True. I must be missing something.

9/6/2016 12:56:16 PM


5 Answers

New Answer


First of all parantheses (False || True) this equals True. Then python checks False == True "False is equal to True?" answer is no, so its false.


False or true gives true buddy @ justin


because first it checks (False||True) and it is or operator,it means + operation for example 1+0=1 so true and then it check for False==True obvisouly it is False so it returns False


parentheses first so (False or True) would be true because it's true if one is true and then as that's the case it won't be equal to False. so it's False haha python is mad. I'm loving it


because false in the left is NOT equal true in the right(answer of "false or true")