Standard Type Operators

The standard type operators discussed in the previous topics, all work as advertised for numeric types. Mixed-mode operations, described above, are those which involve two numbers of different types. The values are internally converted to the same type before the operation is applied.
 
Here are some examples of the standard type operators in action with numbers:

Example

>>> 2.2 == 2.2
True
>>> -719 >= 833
False
>>> 2 < 5 < 9
True
>>> 77 > 66 ==66
True
>>> 0. < -90.4 < 55.3e2 != 3 < 181
False
>>> (-1 < 1) or (1 < -1)
True