Intro To Python
Intro To 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
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
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
• 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.
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.
7) 3D CAD Applications
To create CAD application Fandango is a real application which provides full features of CAD.
1
6
RUNNING PYTHON
• 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.
18
Thank you