Which has precedence? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Which has precedence?

if you code print(False or True), or even, print(True or False) then it prints "True" every time. Why is that?

9th Feb 2018, 9:20 PM
Patrick Martinez
Patrick Martinez - avatar
1 Answer
+ 10
OR is True if ANY of its arguments is True AND is True if ALL its arguments are True
9th Feb 2018, 9:22 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar