examples/other/compare.py
from __future__ import print_function

x = 12; y = 3
print(x > y)     # True

x = '12'; y = 3
print(x > y)     # True   

x = '12'; y = '3'
print(x > y)      # False

x = 12; y = '3'
print(x > y)      # False

Please be careful and only compare the same types. Otherwise the result feels like it is not predictable. In Python 3, comparing different types raises exception.