Introduction to Python
Suma Debsarma
Department of Applied Mathematics
University of Calcutta
Python – a mysterious name
Python is a widely used general-
purpose, high level programming
language. It was initially designed by
Dutch programmer Guido van Rossum
in 1991.
The name Python comes from an old
BBC television comedy sketch series
called Monty Python’s Flying Circus.
When Guido van Rossum was creating
Python, he was also reading the scripts
of Monty Python. He thought the name
Python was appropriately short and
slightly mysterious.
Why should we learn Python?
Python is a higher level programming language.
Its syntax allows programmers to express concepts
in fewer lines of code.
Python is a programming language that lets you
work quickly and integrate systems more efficiently.
One can plot figures using Python.
One can perform symbolic mathematics easily using
Python.
It is available freely online.
Python versions
Python was first released on February 20, 1991 and later on
developed by Python Software Foundation.
Major Python versions are – Python 1, Python 2 and Python 3.
• On 26th January 1994, Python 1.0 was released.
• On 16th October 2000, Python 2.0 was released with many new
features.
• On 3rd December 2008, Python 3.0 was released with more
testing and
includes new features.
Latest version - On 2nd October 2023, Python 3.12 was released.
To check your Python version
i) For Linux OS type python -V in the terminal window.
ii) For Windows and MacOS type import sys print(sys.version) in
the interactive shell
Running Python
There are two modes for using the Python interpreter:
1) Interactive Mode
2) Script Mode
Options for running the program:
• In Windows, you can display your folder contents, and
double click on madlib.py to start the program.
• In Linux or on a Mac you can open a terminal window,
change into your python directory, and enter the
command python madlib.py
Data Types
Python has various standard data types:
Integer [ class ‘int’ ]
Float [ class ‘float’ ]
Boolean [ class ‘bool’ ]
String [ class ‘str’ ]
Thank You