Skip to content
CodeKruPro

Chained comparisons like 1 < x < 10

Predict the outputEasyPython onlyAsked in: Infosys, PhonePe, Wipro
main.py
x = 5
print(1 < x < 10)
print(1 < x > 3)
print(3 > x < 10)
print(10 > x == 5)

Graded by exact match. Spaces at the ends of lines and blank lines at the end do not count.

to answer and keep your progress. Reading is free for everyone.