0

Operator precedence

I can not understand why this code gives the out put as True, print(False == False or True). I am doing operator precedence in python and I can not understand this at all. Can somebody please explain me how this code has the output as True? Thanks

17th Apr 2022, 1:35 PM
Danish Zubair
Danish Zubair - avatar
2 ответов
+ 5
False == False # True So it's True or True If minimum 1 of the the 2 expressions is True, the result will be True
17th Apr 2022, 1:41 PM
Lisa
Lisa - avatar
+ 1
Thank you Lisa
17th Apr 2022, 1:45 PM
Danish Zubair
Danish Zubair - avatar