0% found this document useful (0 votes)
54 views

Brief History of Python: SIJ1004 Introduction To Computational Biology

The document provides a brief history and overview of the Python programming language. It notes that Python was invented in the Netherlands in the early 1990s by Guido van Rossum and was named after Monty Python. It is an open source, scalable, object-oriented, and functional scripting language that is widely used by companies like Google. The document also covers installing Python, editing Python in Emacs, basic Python data types and variables, getting input from users, grouping data in lists and tuples, defining functions, and using if statements.

Uploaded by

Khanagha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views

Brief History of Python: SIJ1004 Introduction To Computational Biology

The document provides a brief history and overview of the Python programming language. It notes that Python was invented in the Netherlands in the early 1990s by Guido van Rossum and was named after Monty Python. It is an open source, scalable, object-oriented, and functional scripting language that is widely used by companies like Google. The document also covers installing Python, editing Python in Emacs, basic Python data types and variables, getting input from users, grouping data in lists and tuples, defining functions, and using if statements.

Uploaded by

Khanagha
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

SIJ1004

Brief History of Python


Introduction to Computational Biology  Invented in the Netherlands, early 90s
by Guido van Rossum
Class 7. Introduction to Python
 Named after Monty Python
 Open sourced from the beginning
 Considered a scripting language, but is
much more
 Scalable, object oriented and functional
from the beginning
 Used by Google from the beginning
 Increasingly popular

1
Python’s Benevolent Dictator For Life Installing
 Python is pre-installed on most Unix systems,
including Linux and MAC OS X
“Python is an experiment in  The pre-installed version may not be the most
how much freedom program- recent one (2.6.2 and 3.1.1 as of Sept 09)
mers need. Too much freedom  Download from http://python.org/download/
and nobody can read another's  Python comes with a large library of standard
code; too little and expressive- modules
ness is endangered.”  There are several options for an IDE
- Guido van Rossum • IDLE – works well with Windows
• Emacs with python-mode or your favorite text editor
• Eclipse with Pydev (http://pydev.sourceforge.net/)

2
3
Editing Python in Emacs
 Emacs python-mode has good support for editing
Python, enabled enabled by default for .py files
 Features: completion, symbol help, eldoc, and inferior
interpreter shell, etc.

4
Data type Variables
 Strings  Storing data
 Numeric  variable = (data)
 Boolean value  Variable storing string data:
 Variable storing numeric data:
 Variable storing Boolean value:

5
Getting input from users Groups of data
 Allows users to input data into the program.  List
 name = input() • name = [data1, data2, data3]

 Tuple
• name = (data1, data2, data3)

6
Functions If statement
 Allow the program to respond to input from user.
 A set codes to do a specific task.
 A condition:
 Writing a function that says “Hello” on your screen.
• True or false
 Using “def” keyword
 The function: • Value

 Calling the function:

 Return (getting back) information from a function.

You might also like