Introduction to Python
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin
Bhardwaj, PGT(CS), KV No.1 Tezpur
September 9, 2025
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Introduction
Python was created by Guido Van Rossum
The language was released in February 1991
Python got its name from a BBC comedy series - "Monty
Python’s Flying Circus"
Python can be used to follow both Procedural approach and
Object Oriented approach of programming
It is free to use
Python is based on or influenced with two programming
languages:
ABC language [replacement of BASIC]
Modula-3
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Features which make Python so popular
Easy to use Object oriented language
Expressive language
Interpreted Language
Its completeness
Cross-platform Language
Free and Open source
Variety of Usage / Applications
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Easy to Use & Expressive Language
Easy to Use
Python is compact and very easy to use object oriented
language with very simple syntax rules. It is very high level
language and thus very-very programmer-friendly
Expressive Language
More capable to express code’s purpose than many other
language like - swapping of two numbers:
In C++ In Python
int a=2, b=3, tmp; a,b=2,3
tmp=a; a,b=b,a
a=b;
b=tmp;
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Interpreted & Completeness
Interpreted
It is interpreted not compiled, thus executes code line by line
and it makes python easy-to-debug and suitable for beginners
and advanced users
Completeness
When you install Python, you get everything i.e. you don’t
need to install additional libraries. All functionality is available
with Python additional library. Features like web-pages,
database connectivity, GUI features are available in Python
standard library. Python follows - "Battery included"
philosophy
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Cross-Platform & Free and Open Source
Cross-Platform
Python can run equally well on variety of platforms -
Windows, Linux/UNIX, Macintosh, supercomputers, smart
phones. Python is portable language.
Free and Open Source
It is freely available i.e. without any cost can be downloaded
from [Link].
It is also open source i.e. you can modify, improve/extend an
open-source software
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Variety of Usage/Applications
Python is being used in many diverse fields/applications, some
of which are:
Scripting
Web Applications
Game Development
System Administrations
Rapid Prototyping
GUI Programs
Database Applications
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Limitations (Minus) of Python
Not the fastest language
Lesser Libraries than C, Java, Perl
Not Strong on Type-binding
Not Easily convertible
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Working In Python
Before we start working on Python we need to install Python
in our computer. There are multiple distributions available
today:
Default Installation available from [Link] is called
Cpython installation and comes with python interpreter,
Python IDLE(Python GUI) and Pip(package installer)
ANACONDA Python distribution is one such highly
recommended distribution that comes with preloaded many
packages and libraries(NumPy, SciPy, Panda etc)
Other Popular IDEs like Spyder, PyCharm, etc. Spyder IDE is
available as a part of ANACONDA.
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Working Modes in Python
After Python installation we can start working with python. In
Python we can work in 2 ways:
Interactive Mode (Immediate Mode)
Script Mode
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur
Working in Default CPython Distribution
The default installation of CPython comes with Python
Interpreter, Python IDLE and pip(package installer). To work
in either interactive mode or script we need to open Python
IDLE
To work in interactive mode, follow the process given below:
(i) Click start button → All Programs → Python 3.6.x →IDLE
Or Click start button → All Programs → Python 3.6.x
→Python (command line)
for more updates visit: [Link]
Vinod Kumar Verma, PGT(CS), KV OEF Kanpur & Sachin Bhardwaj,
Introduction
PGT(CS),to
KVPython
No.1 Tezpur