+ 1

Why this is Falseļ¼Ÿ

False == (False or True) ? Isn't it like asking is False IS False or True? What is the brackets effect here?

14th Aug 2016, 8:47 AM
Ryu
Ryu - avatar
5 Answers
+ 7
The statement in the bracket is evaluated and then compared to False. False or True is True since only one of them needs to be True. So then you have False == True, which then evaluates to False since False is not equal to True.
14th Aug 2016, 9:25 AM
Gershon Fosu
Gershon Fosu - avatar
+ 3
Thanks
14th Aug 2016, 9:57 AM
Ryu
Ryu - avatar
0
order of precedence for operator.. it first evaluated parenthesis the other
14th Aug 2016, 8:55 PM
Shekhar Nadar
Shekhar Nadar - avatar
0
we know true or false is true in python and her false!= true
28th Aug 2016, 12:02 PM
Kartik
0
Here it goes in this way In braces false or true statement concludes to true and as false is not equal to true ,end statement concludes to false
14th Sep 2016, 6:26 AM
Rohit Koul
Rohit Koul - avatar