0
I can't understand this code. Anyone can explain please!
>>> False == False or True True >>> False == (False or True) False >>> (False == False) or True True
2 Respuestas
+ 7
Firstly, '==' has a higher precedence than 'or'.
Secondly 'or' returns True if atleast one of its conditions is true.
Thirdly, '()' has higher precedence than '==' and 'or'
1. False == False or True
=> True or True
=> True
2. False == (False or True)
=> False == True
=> False
3. (False == False) or True
=> True or True
=> True
+ 1
got it. thank you. 😌😌😌