The order of values can be compared with the < (less than) and > (greater than) operators. By adding an equal sign = after the operator (i.e. <= and >=), the comparison will also be True if the values are equal.
‘>’ Greater than Operator
If the value of left operand is greater than the value of right operand, then condition becomes true.
Suppose, We have two numbers 12 and 8, if we will write 12>8, then it will be a True statement. And if we will write 8>12, it will be False.
print("Is 12>8 ? , 12>8) print("Is 8>12 ? " , 8>12) x = 12 y = 6 print("Is x>y ? " , x>y)