0

False==false or true

The answer is true how does this work

17th May 2020, 6:38 PM
Hubert Richardo
4 Respuestas
+ 4
Hubert Richardo 1or 0 =1 0 or 1=1 0 or 0=0 1or1=1 false==false is true true or true is true
17th May 2020, 6:41 PM
Petr
+ 2
RAJESH SAHU yes. But if you write false as a variable, in any case False or True =True, 0 or 1=1 BUT if the true it is not True and true is variable, then i need its means, couse answer you later:) AND author don't write about python, my dear teacher :))
17th May 2020, 7:08 PM
Petr
+ 1
It's all because of the operators precedence.. because comparison operator(==) is evaluating first and then "or" operator .. So, ⏺️False==false or true ⏺️False or true Now, "or" operator returns the first True value so ⏺️False or true true
17th May 2020, 7:03 PM
ANJALI SAHU
+ 1
Petr python is a case sensitive language so False==false will return False not True..
17th May 2020, 7:05 PM
ANJALI SAHU