In [1]:
5 > 2


Out[1]:
True

In [2]:
2 > 5


Out[2]:
False

In [3]:
print type(True)
print type(False)


<type 'bool'>
<type 'bool'>

In [4]:
if 5 > 2:
    print "5 is grater than 2"


5 is grater than 2

In [5]:
if 2 > 5:
    print "5 is grater than 2"

In [6]:
if 2 > 5:
    print "5 is grater than 2"
else:
    print "2 is less than 5"


2 is less than 5

In [ ]: