python_tutorial.pdf

(304 KB) Pobierz
Outline
General Introduction
Basic Types in Python
Programming
Exercises
Python course in Bioinformatics
Xiaohui Xie
March 31, 2009
Xiaohui Xie
Python course in Bioinformatics
Outline
General Introduction
Basic Types in Python
Programming
Exercises
General Introduction
Basic Types in Python
Programming
Exercises
Xiaohui Xie
Python course in Bioinformatics
Outline
General Introduction
Basic Types in Python
Programming
Exercises
Why Python?
Scripting language, raplid applications
Minimalistic syntax
Powerful
Flexiablel data structure
Widely used in Bioinformatics, and many other domains
Xiaohui Xie
Python course in Bioinformatics
Outline
General Introduction
Basic Types in Python
Programming
Exercises
Where to get Python and learn more?
Main source of information:
http://docs.python.org/
Tutorial:
http://docs.python.org/tutorial/index.html
Biopython:
http://biopython.org/wiki/Main Page
Xiaohui Xie
Python course in Bioinformatics
Outline
General Introduction
Basic Types in Python
Programming
Exercises
Invoking Python
To start: type
python
in command line
It will look like
Python 2.5.2 (r252:60911, Mar 25 2009, 00:12:33)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
You can now type commands in the line denoted by
>>>
To leave: type end-of-file character
ctrl-D
on Unix,
ctrl-z
on Windows
This is called
interactive mode
Xiaohui Xie
Python course in Bioinformatics
Zgłoś jeśli naruszono regulamin