You are on page 1of 19

PYTHON

Python
WHAT IS PYTHON…?
• Python is a general purpose programming 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

2
PROGRAM AND SCRIPTING LANGUAGE

Program Scripting
• a program is executed (i.e. the source • a script is interpreted
is first compiled, and the result of that • A "script" is code written in a
compilation is expected) scripting language. A scripting
• A "program" in general, is a sequence
language is nothing but a type of
of instructions written so that a
computer can perform certain task. programming language in which
we can write code to control
another software application.

3
HISTORY

• Python laid its foundation in the late 1980s.


• The implementation of Python was started in the December 1989 by Guido
Van Rossum at CWI in Netherland.
• Guido Van Rossum is fan of ‘Monty Python’s Flying Circus’, this is a famous TV
show in Netherlands
• In February 1991, van Rossum published the code (labeled version 0.9.0).
• In 1994, Python 1.0 was released with new features like: lambda, map, filter,
and reduce.
• Python 2.0 added new features like: list comprehensions, garbage collection
system.
• On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was
designed to rectify fundamental flaw of the language.
4
PYTHON’S BENEVOLENT DICTATOR FOR LIFE

“Python is an experiment in how much


freedom programmers need. Too much
freedom and nobody can read another's code;
too little“.
- Guido van Rossum

5
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 in the Bourne shell things

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
WHAT CAN I DO WITH PYTHON…?
• System programming
• Graphical User Interface Programming
• Internet Scripting
• Database Programming
• Gaming, Images, XML , Robot and more

7
WHO USES PYTHON TODAY…
• Python is being applied in real revenue-generating products by real
companies. For instance:
• Google makes extensive use of Python in its web search
system, and employs Python’s creator.
• Intel, Cisco, Qualcomm, and IBM use Python for hardware testing.
• The YouTube video sharing service is largely written in Python

8
WHY DO PEOPLE USE PYTHON…?
The following primary factors refer by Python users seem to be these:
• Python is object-oriented
Structure supports such concepts as polymorphism, operation
overloading, and multiple inheritance.
.
• It's free (open source)
Downloading and installing Python is free and easy Source code is easily
accessible

9
• It's powerful
- Dynamic typing
- Built-in types and tools
- Library utilities
- Third party utilities (e.g. Numeric, NumPy, Pandas)
- 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.

10
Versions
Python 1.0 January 1994
Python 1.5 December 31, 1997
Python 1.6 September 5, 2000
Python 2.0 October 16, 2000
Python 2.1 April 17, 2001
Python 2.2 December 21, 2001
Python 2.3 July 29, 2003
Python 2.4 November 30, 2004
Python 2.5 September 19, 2006
Python 2.6 October 1, 2008
Python 2.7 July 3, 2010
Python 3.0 December 3, 2008
Python 3.1 June 27, 2009
Python 3.2 February 20, 2011
Python 3.3 September 29, 2012
Python 3.4 March 16, 2014
Python 3.5 September 13, 2015
Python 3.6 December 23, 2016
Python 3.7 June 27, 2018 11
INSTALLING PYTHON

• Python is pre-installed on most Unix systems, including Linux and MAC OS X

• But for in Windows Operating Systems , user can download from the
https://www.python.org/downloads/
- from the above link download latest version of python IDE and install,
recent version is 3.8

1
2
• After installing the Python Ver#2.7.7, go
to start menu then click on python 2.7
in that one you can select python
(command line) it is prompt with >>>

1
3
14
Python Applications
Python is known for its general purpose nature that makes it applicable in almost each domain of
software development. Python as a whole can be used in any sphere of development.
1) Web Applications
We can use Python to develop web applications. It provides libraries to handle internet protocols
such as HTML and XML, JSON, Email processing, request, beautifulSoup, Feedparser etc. It also
provides Frameworks such as Django, Pyramid, Flask etc to design and delelop web based
applications.

2) Desktop GUI Applications


Python provides Tk GUI library to develop user interface in python based application. Some other
useful toolkits wxWidgets, Kivy, pyqt that are useable on several platforms. The Kivy is popular for
writing multitouch applications.

3) Software Development
Python is helpful for software development process. It works as a support language and can be used
for build control and management, testing etc.

1
5
Python Applications
4) Scientific and Numeric
Python is popular and widely used in scientific and numeric computing. Some useful library and
package are SciPy, Pandas, IPython etc. SciPy is group of packages of engineering, science and
mathematics.

5) Business Applications
Python is used to build Business applications like ERP and e-commerce systems. Tryton is a high
level application platform.

6) Audio or Video based Applications


Python is awesome to perform multiple tasks and can be used to develop multimedia applications.
Some of real applications are: TimPlayer, cplay etc.

7) 3D CAD Applications
To create CAD application Fandango is a real application which provides full features of CAD.

1
6
RUNNING PYTHON

Once you're inside the Python interpreter, type in commands at will.

• Examples:
print('Hello world’)

1
7
PYTHON CODE EXECUTION
• Python’s traditional runtime execution model: source code you type is
translated to byte code, which is then run by the Python Virtual
Machine. Your code is automatically compiled, but then it is interpreted.

Source code extension is .py


Byte code extension is .pyc (compiled python code)

18
Thank you

You might also like