In [1]:
# control flow
# * conditional 
# * looping/iteration

In [2]:
# conditinal work on truth of a condition

print 5 > 2


True

In [3]:
print 2 > 5


False

In [4]:
print type(True),type(False)


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

In [5]:
# if

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


5 is greater than 2

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

In [8]:
if 2 > 5:
    print "2 is greater than 5"
else:
    print "5 is greater than 2"


5 is greater than 2

In [ ]: