In [ ]:
# control flow -> (conditions/looping)
# conditions
In [1]:
5 > 2
Out[1]:
In [2]:
5 < 2
Out[2]:
In [3]:
print type(True)
print type(False)
In [4]:
if 5 > 2:
print "5 is greater than 2"
In [5]:
if 2 > 5:
print "2 is greater than 5"
In [6]:
if 2 > 5:
print "2 is greater than 5"
else:
print "5 is greater than 2"
In [ ]:
# https://www.youtube.com/watch?v=wf-BqAjZb8M
# https://www.python.org/dev/peps/pep-0008/
# module pep8