+ 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?
5 Respostas
+ 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.
+ 3
Thanks
0
order of precedence for operator.. it first evaluated parenthesis the other
0
we know true or false is true in python and her false!= true
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