0% found this document useful (0 votes)
80 views15 pages

Python 1

This document provides an introduction to the Python programming language. It describes Python as a high-level, interpreted, and object-oriented language. It outlines key Python features such as being easy to read, cross-platform, having extensive libraries, and being freely available. The document also gives a brief history of Python and describes different Python versions. It concludes with instructions on installing Python and using the IDLE integrated development environment.

Uploaded by

Swapnarani Sahoo
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
80 views15 pages

Python 1

This document provides an introduction to the Python programming language. It describes Python as a high-level, interpreted, and object-oriented language. It outlines key Python features such as being easy to read, cross-platform, having extensive libraries, and being freely available. The document also gives a brief history of Python and describes different Python versions. It concludes with instructions on installing Python and using the IDLE integrated development environment.

Uploaded by

Swapnarani Sahoo
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1/ 15

Introduction to

Python Programming
Python Overview
8/22/2017
What is Python?

Python is a high-level programming language which is:


 Interpreted: Python is an interpreted language i.e. interpreter executes
the code line by line at a time. When you use an interpreted language
like Python, there is no separate compilation. .
 Interactive: You can use a Python prompt and interact with the interpreter
directly to write your programs.
 Object-Oriented: A programming language that can model the real world
is said to be object-oriented. It focuses on objects and combines data
and function. Python supports both procedure-oriented and object-
oriented programming which is one of the key python features.
Python Features

1. Easy to Read
Python code is quite like English. Looking at it, you can tell what the code is supposed to do.

2. High-Level
Python is a high-level language. This means that as programmers, we don’t need to remember the
system architecture. Also, we need not manage memory.

3. Cross-platform language
Python can run equally on different platforms such as Windows, Linux, Unix , Macintosh etc. A Python
program written on a Windows computer will run on a Linux system and vice versa. Thus, Python is
a portable language .

4. Extensible
If needed, you can write some of your Python code in other languages like C++. This makes Python an
extensible language, meaning that it can be extended to other languages.
More Features ..

5. Dynamically Typed
Python is dynamically-typed. This means that the type for a value is decided at runtime, not in advance. This
is why we don’t need to specify the type of data while declaring it.

6. Free and Open Source


Python is a Open Source Software. In simple terms, you can freely distribute copies of this software, read
the software's source code, make changes to it, use pieces of it in new free programs , and that you know
you can do these things. Python language is freely available at www.python.org . The source-code is also
available. Therefore it is open source.

7. Extensive Libraries
The Python Standard Library is huge indeed. Python library contains built-in modules that provide access to
system functionality, as well as modules written in Python that provide standardized solutions for many
problems that occur in everyday programming.
Why
Python
Easy to read  Python scripts have clear syntax, simple structure and very few protocols to
remember before programming.

Easy to Maintain  Python code is easily to write and debug. Python's success is that its source code is fairly
easy-to-maintain.

Portable  Python can run on a wide variety of Operating systems and platforms and providing the
similar interface on all platforms.

Broad Standard Libraries  Python comes with many prebuilt libraries apx. 21K
High Level programming  Python is intended to make complex programming simpler. Python deals with memory
addresses, garbage collection etc internally.

Interactive  Python provide an interactive shell to test the things before implementation. It provide
the user the direct interface with Python.

Database Interfaces  Python provides interfaces to all major commercial databases. These interfaces are
pretty easy to use.

GUI programming  Python supports GUI applications and has framework for Web. Interface to tkinter,
WXPython, DJango in Python make it . 8/22/2017
History of Python

 Python was created by Guido Van Rossum in the late


1980s.
 Rossum published the first version of Python code (0.9.0) in
February 1991 at the CWI (Centrum Wiskunde & Informatica)
in the Netherlands , Amsterdam.
 Rossum chose the name "Python", since he was a big fan of
Monty Python's Flying Circus.
 Python is now maintained by a core development team at the
institute, although Rossum still holds a vital role in directing
its progress.
Python Versions

Release dates for the major and minor 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 Versions

Release dates for the major and minor versions:


 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
Installation of Python

• To learn this language first ,you have to download the


software.
• Presently the version in use is Python 3.x
To download the Python go to the site
http://www.python.org/downloads and click on the suitable
icon.
The website appears as shown below.
• This Python shell allows us to use Python in
interactive mode.
• The shell waits for a command from the user ,executes it and
returns the result.
IDLE
• IDLE is a graphical user interface for doing Python development,
and is a standard and free part of the Python system.
• It is usually referred to as an Integrated Development
Environment (IDE).
• One can write the Python code using the IDLE which is like an
editor.This comes along with Python .
The Screenshot for IDLE will be as shown below. The >>> is the prompt,
telling you Idle is waiting for you to type something.

You might also like