Advanced Bio Informatics
What is Python?
Guido van Rossum –
The author of Python
Free and open source
technology
Easy to understand
Object oriented
language
Dynamic typed
language
Interpreter
Python - Introduction
What is Python?
Dynamic typed
language which
means data types are
checked at runtime
instead of compile
time
Python - Introduction
Why Python?
Object oriented
Easy to learn
Extensible
Rich built in data
structure
Python - Introduction
Python/Emacs IDE
Python - Introduction
Syntax of a Python program
Lines # Elementary Python program
beginning print "Hello World"
with "#" are
comments,
and are ignored
by Python Single or double quotes
enclose a "string literal"
print statement tells Python to print the
following stuff to the screen
Python - Introduction
Python Data Types
Numeric Types
• Integer, long, float,
Decimal, Complex
Sequence Types
• String, Unicode, List,
Tuple
Collection Types
• Dictionary, Set
Other types such as
Boolean
Python - Introduction
More on Python
In Python, everything
is object
To access function
or method on object,
“.” is used. E.g.
[Link]()
Control flow (loops, if-
else) is very similar to
other languages