Code Lab

Chaining comparison operators

x = 5 print(1 < x < 10) print(10 < x < 20) print(x < 10 < (x * 10) < 100) print(10 > x <= 9) print(5 == x > 4)
:
Input
Input Data (stdin):
Output
True
False
True
True
True