+ 3
i don't get it :/
Why print(True == False or True) is True Pls help thank you
6 ответов
+ 9
True == False or True => *(True == False returns False)*
False or True =>
True .
+ 5
When we have "or":
True or True = True
True or False = True
False or False = False
+ 3
thank you :))
0
LOGIC IN "AND" and "OR":
on "AND"
if there is False on the comparison, it always return to false
on "OR"
if there is TRUE on the comparison, it always return to True
0
It's in OR logic ...
(True == False or True)
True value is 1
False value is 0
So ..
//OR logic=>0+1=1
( 1 == 0 or 1 ) ans is true !
0
== has higher precedence than logical or
so
1.(true==false) gives false
2.((true== false) or true)
(false or true) gives true