In [ ]:
# control flow -> (conditions/looping)
# conditions

In [1]:
5 > 2


Out[1]:
True

In [2]:
5 < 2


Out[2]:
False

In [3]:
print type(True)
print type(False)


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

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


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"


5 is greater than 2

In [ ]:
# https://www.youtube.com/watch?v=wf-BqAjZb8M
# https://www.python.org/dev/peps/pep-0008/
# module pep8
tcloudost@tcloudost-VirtualBox ~ $ cat .vimrc syntax on set nu set tabstop=2 set expandtab set autoindent tcloudost@tcloudost-VirtualBox ~ $ pwd /home/tcloudost tcloudost@tcloudost-VirtualBox ~ $