In [ ]:
# conditional - Truth of a statement
# if <true>
# do this
# else
# do this
In [1]:
5 > 2
Out[1]:
In [4]:
2 > 5
Out[4]:
In [6]:
print type(True),type(False)
In [5]:
if 5 > 2:
print "5 is greater than 2"
In [8]:
if 2 > 5:
print "2 is greater than 5"
else:
print "5 is greater than 2"
In [ ]:
# https://www.python.org/dev/peps/pep-0008/
# https://www.youtube.com/watch?v=wf-BqAjZb8M