In [ ]:
# conditional - Truth of a statement
# if <true>
#   do this
# else
#   do this

In [1]:
5 > 2


Out[1]:
True

In [4]:
2  > 5


Out[4]:
False

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


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

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


5 is greater than 2

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


5 is greater than 2

In [ ]:
# https://www.python.org/dev/peps/pep-0008/
# https://www.youtube.com/watch?v=wf-BqAjZb8M
cat .vimrc syntax on set nu set tabstop=2 set expandtab set autoindent