LEVEL 2Comparison & logic
PYTHON, PLOT TWIST! Q12
Logical operators and precedence
What’s the output? Think first. Trust your brain.
question_12.pyPython 3
1print(True or False and False)2print((True or False) and False)3print(not True or True and False)
Logic has a guest list.

“and” gets in before “or”.
a very python moment