You are on page 1of 10

Introduction to Python3

19CSE201-Advanced Programming
Python
 High Level Programming Language for general purpose
programming.
 Created by Guido Van Rossum
 Release in 1991
 Interpreted not Compiled
 Open Source
 Strongly typed and Dynamically typed
 Object Oriented
 Focus on readability and productivity
Why was Python Named Python?

“ I needed a short, simple, unique and slightly


mysterious name, so I decided to call it
Python.”
Releases
 Python 1.0 released in 1994
 Python 2.0 released in 2000
 Python 3.0 released in 2008
 Python 2.7 is the recommended version
 3.0 adoption will take a few years
Why Python?
 Easy to Learn
 Simple Syntax
 Write Less. Do More.
 Code Readability
 Versatile and Flexible
Application
▪ Machine Learning
▪ Computer Vision
▪ Web Development
▪ Game Development
▪ Web Scraping
▪ Desktop Applications
▪ Automation.....
Why Python?
 Python is Interpreted − Python is processed at
runtime by the interpreter. You do not need to compile
your program before executing it.

 Python is Interactive − You can actually sit at a


Python prompt and interact with the interpreter
directly to write your programs.

 Python is Object-Oriented − Python supports


Object-Oriented style or technique of programming
that encapsulates code within objects.
Characteristics of Python
 It supports functional and structured programming
methods as well as OOP.

 It can be used as a scripting language or can be compiled


to byte-code for building large applications.

 It provides very high-level dynamic data types and


supports dynamic type checking.

 It supports automatic garbage collection.

 It can be easily integrated with C, C++, COM, ActiveX,


CORBA, and Java.
KEY DIFFERENCES:
• Python code runs through an interpreter while
C++ code is pre-compiled
• Python supports Garbage Collection whereas C++
does not support Garbage Collection
• Python is slower, on the other hand, C++ is faster
than Python
• In Python, Rapid Prototyping is possible because of
the small size of the code while in C++, Rapid
Prototyping not possible because of larger code
size
• Python is easy to learn language whereas C++ has a
stiff learning curve as it has lots of predefined
syntaxes and structure
Hello World…..

C++

#include <iostream> Python3


using namespace std;
int main()
{ print("Hello World")
cout<<"Hello World";
return 0;
}

You might also like