LEVEL 2Comparison & logic
PYTHON, PLOT TWIST! Q20
Nested and and or
What’s the output? Think first. Trust your brain.
question_20.pyPython 3
1a = 02b = 53c = 104print(a or b and c)5print((a or b) and c)6print(a and b or c)7print(a or b or c and 0)
Logic inside logic.

We heard you like plot twists.
a very python moment