Unit-I: Introction To Python
Unit-I: Introction To Python
INTROCTION TO PYTHON
Agenda
What is Python…?
Differences between program and scripting language
History of Python
Scope of Python
Why do people use Python? Installing Python IDE
Who uses python today What can I do with python
A Sample Code Python code execution Running
Python
What is Python…?
Python is a general purposeprogramming language that is
often applied in scripting roles.
So, Python is
programming language as well
as scripting language.
Python is also called as Interpreted language
History
Invented in the Netherlands, early 90s by Guido van
Rossum Python was conceived in the late 1980s and its
implementation was started in December 1989
Guido Van Rossum is fan of ‘Monty
Python’s Flying Circus’, this is a famous TV
show in Netherlands
Named after Monty Python
Open sourced from the beginning
Python’s Benevolent Dictator For
Life
“Python is an experiment in how much
freedom program-mers need. Too
much freedom and nobody can read
another's code; too little and
expressive-ness is endangered.”
- Guido van Rossum
Why was python
created?
"My original motivation for creating Python was the
perceived need for a higher level language in the Amoeba
[Operating Systems] project.
I realized that the development of system
administration utilities in C was taking too long.
Moreover, doing these things in the Bourne shell
wouldn't work for a variety of reasons. ...
So, there was a need for a language
that would bridge the gap between C and the shell”
- Guido Van Rossum
Scope of Python
Science
- Bioinformatics System
Administration
-Unix
-Web logic
-Web sphere
Web Application
Development
-CGI
-Jython – Servlets Testing
scripts
Why do people use Python…?
The following primary factors cited by Python users seem to
be these:
Python is object-oriented
Structure supports such concepts as polymorphism, operation
overloading, and multiple inheritance.
Indentation
Indentation is one of the greatest future in Python. It's free
(open source)
Downloading and installing Python is free and easy Source
code is easily accessible
It's powerful
-Dynamic typing
-Built-in types and tools
-Library utilities
-Third party utilities (e.g. Numeric, NumPy, SciPy)
-Automatic memory management It's portable
-Python runs virtually every major platform used today
-As long as you have a compatible Python interpreter installed,
Python programs will run in exactly the same manner,
irrespective of platform.
It's mixable
- Python can be linked to components written in other languages
easily
- Linking to fast, compiled code is useful
to computationally intensive
• problems
- - Python/C integration is quite common
• It's easy to use
- No intermediate compile and link steps as in C/ C++
- Python programs are compiled automatically
to an intermediate form called bytecode, which the
interpreter then reads
- This gives Python the development speed of an interpreter without
• the performance loss inherent in purely interpreted languages
• It's easy to learn
Installing Python
Python is pre-installed on most Unix systems, including Linux
and MAC OS X