+ 1

Python: question about and/or operation

print (True or False and False) print ((True or False) and False) print (False and False or True) Output: True False True I want to now how it works and output like this The third one confuse me Thanks for reading🙇

11th Oct 2018, 3:25 PM
M0UZ3
1 Resposta
0
To make it easier for myself, I think everything connected by 'and' as ONE condition (except parentheses say otherwise).
11th Oct 2018, 4:07 PM
HonFu
HonFu - avatar