+ 2

[solved ] Explain converse implication operator in python

>>> False ** False == True True >>> False ** True == False True >>> True ** False == True True >>> True ** True == True True

12th Nov 2020, 5:20 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 ответ
+ 8
** has higher operator precedence than == false **false is evaluated as 0**0=>1 false**true id evaluated as 0**1=>0 true**false is evaluated as 1**0 1 true**true is evaluated as 1**1=>1
12th Nov 2020, 5:24 PM
Abhay
Abhay - avatar