Introduction &
History of Python
Mayank Raghuwanshi +91-7773070136
1
What is a Programming Language?
• A programming language is a special language that people use to talk to
computers. It helps us give instructions to the computer and tell it what to do.
What is Code?
• Code is like a set of instructions that we write using a programming language.
It tells the computer step by step what actions to take.
Mayank Raghuwanshi +91-7773070136
2
What is a Program?
• A program is a collection of instructions written in a programming language.
It's like a recipe that the computer follows to do a specific task or solve a
problem.
What is a Variable (Storage Location)?
• A variable is like a storage location that holds information in a program. It
Mayank Raghuwanshi +91-7773070136
allows us to store and manipulate data during program execution.
3
?
• Python is an open source, general purpose programming
language that is easy to read and powerful.
• It is an interpreted language, which do not need to be compiled
to run.
Mayank Raghuwanshi +91-7773070136
• Python is much easier than other programming languages and
helps you to create beautiful applications with less efforts.
• Python is a clear and powerful object-oriented programming
language, comparable to Perl, Ruby, or Java.
• Python is a programming language that combines features of C
and Java.
4
History of Python
• Python was created by Guido van Rossum, and first released on
February 20, 1991.
• Guido aimed to develop a language that was easy to learn and
read, with a strong emphasis on code readability.
Mayank Raghuwanshi +91-7773070136
• Python's design was influenced by several programming
languages, including ABC, Modula-3, C, and Lisp.
• Python got its name from the BBC comedy series “Monty
Python's Flying Circus”.
• Guido van Rossum needed a name that should be short, unique,
and slightly mysterious. Since he was a fan of the show he
thought this name was great. 5
Real world applications of Python
Mayank Raghuwanshi +91-7773070136
6
Mayank Raghuwanshi +91-7773070136
7
Features of Python
There are many features in Python, some of which are discussed below as follows:
1. Free and Open Source :-
Python language is freely available at the official website and you can download it directly
from its website. Since it is open-source, this means that source code is also available to the
public. So you can download it, use it as well as share it.
Mayank Raghuwanshi +91-7773070136
2. Easy to code :-
Python is a high-level programming language. Python is very easy to learn the language as
compared to other languages like C, C#, JavaScript, Java, etc.
3. Easy to Read :-
As you will see, learning Python is quite simple. As was already established, Python’s syntax
is really straightforward. The code block is defined by the indentations rather than by
semicolons or brackets.
8
4. Object-Oriented Language :-
One of the key features of Python is Object-Oriented programming. Python
supports object-oriented language and concepts of classes, object
encapsulation, etc.
5. High-Level Language :-
Python is a high-level language. When we write programs in Python, we do
not need to remember the system architecture, nor do we need to manage
Mayank Raghuwanshi +91-7773070136
the memory.
6. Python is a Portable language :-
Python language is also a portable language. For example, if we have
Python code for windows and if we want to run this code on other
platforms such as Linux, Unix, and Mac then we do not need to change it,
we can run this code on any platform.
9
7. Large Standard Library :-
Python has a large standard library that provides a rich set of modules and functions so
you do not have to write your own code for every single thing. There are many libraries
present in Python such as regular expressions, unit-testing, web browsers, etc.
8. Allocating Memory Dynamically :-
In Python, the variable data type does not need to be specified. The memory is
automatically allocated to a variable at runtime when it is given a value. Developers do
Mayank Raghuwanshi +91-7773070136
not need to write int y = 18 if the integer value 15 is set to y. You may just type y=18.
9. Dynamically Typed:-
Python is a dynamically-typed language. That means the type (for example- int, double,
long, etc.) for a variable is decided at run time not in advance because of this feature we
don’t need to specify the type of variable.
10
Print(“Hello world”)
Mayank Raghuwanshi +91-7773070136
print([Link]())
11
Disadvantages of Python
Speed
Mobile development
Mayank Raghuwanshi +91-7773070136
Simplicity
Runtime errors
Memory consumption
12