LEVEL 2Comparison & logic
PYTHON, PLOT TWIST! Q15
Short-circuit evaluation
What’s the output? Think first. Trust your brain.
question_15.pyPython 3
1x = 02print(x != 0 and 10 / x > 2)3print(x == 0 or 10 / x > 2)4print(x != 0 or 10 / x > 2)
Zero division ahead.

Can short-circuit save the day?
a very python moment