To check if a number is less than another number, we use the less-than operator, <
.
1 < 90
If the number on the left is less than the number on the right, like in 1 < 235
, the result is True
.
print(1 < 235)
If the number on the left isn't less than the number on the right, like in 235 < 1
, the result is False
.
print(235 < 1)