In [1]:
# control flow
# * conditional
# * looping/iteration
In [2]:
# conditinal work on truth of a condition
print 5 > 2
In [3]:
print 2 > 5
In [4]:
print type(True),type(False)
In [5]:
# if
In [6]:
if 5 > 2:
print "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"
In [ ]: