LEVEL 2Comparison & logic
PYTHON, PLOT TWIST! Q18
Comparison chaining vs logical operators
What’s the output? Think first. Trust your brain.
question_18.pyPython 3
1x = 82print(3 < x < 10)3print(3 < x and x < 10)4print(3 < x > 10)5print(3 < x or x > 10)
Same outfit?

Not always the same result.
a very python moment