+ 1
print(False == False or True)
Please tell me why is this true.?
1 Answer
+ 1
It's because the operators have a specified order of evaluation. It's called the order of precedence.
So, in Python, this will be true because the comparison operator has higher precedence and then boolean OR operator will evaluate the answer.