# (2 or 10) ocorre o curto-circuito, retornando o primeiro operando: 2
print(2 or 10)
# (10 or 2) ocorre o curto-circuito, retornando o primeiro operando: 10
print(10 or 2)
# (2 and 10) não ocorre o curto-circuito, retornando o segundo operando: 10
print(2 and 10)
# (10 and 2) não ocorre o curto-circuito, retornando o segundo operando: 2
print(10 and 2)
IyAoMiBvciAxMCkgb2NvcnJlIG8gY3VydG8tY2lyY3VpdG8sIHJldG9ybmFuZG8gbyBwcmltZWlybyBvcGVyYW5kbzogMgpwcmludCgyIG9yIDEwKQoKIyAoMTAgb3IgMikgb2NvcnJlIG8gY3VydG8tY2lyY3VpdG8sIHJldG9ybmFuZG8gbyBwcmltZWlybyBvcGVyYW5kbzogMTAKcHJpbnQoMTAgb3IgMikKCiMgKDIgYW5kIDEwKSBuw6NvIG9jb3JyZSBvIGN1cnRvLWNpcmN1aXRvLCByZXRvcm5hbmRvIG8gc2VndW5kbyBvcGVyYW5kbzogMTAKcHJpbnQoMiBhbmQgMTApCgojICgxMCBhbmQgMikgbsOjbyBvY29ycmUgbyBjdXJ0by1jaXJjdWl0bywgcmV0b3JuYW5kbyBvIHNlZ3VuZG8gb3BlcmFuZG86IDIKcHJpbnQoMTAgYW5kIDIp