0
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.
5 ответов
+ 3
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.
+ 3
False or true gives true buddy @ justin
0
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
0
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
- 1
because false in the left is NOT equal true in the right(answer of "false or true")