Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Someone explain me how to know if its true or false by precedence ...I don't get the logic here...
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2280/
2 ответов
+ 2
The == ignores the OR, so at the first one it is like
False == False, which is true.
The second one:
False == (False or True), the () give preference.
The last one:
(False == False) or True, the () give preference and the == ignores the OR, so, as false is the same as false, it is true.
I don't know if you could understand but my english is really bad. Hope I helped you in some way.
+ 2
I think this link will help you.
https://www.guru99.com/JUMP_LINK__&&__python__&&__JUMP_LINK-operators-complete-tutorial.html