Sie sind auf Seite 1von 32

Chapter 1

ChapterIntroduction
1
to Python
Introduction to
Python
Today’s Agenda
An Introduction of Python

• Necessity of Programming

• What is Python ?

• Why And Who Created it?

• What Python can Do ?

• Why Should I Learn Python ?

• Comparison With Other Programming Languages

• Important Features
Why Do We Need Programming ?

 To communicate with digital machines and make


them work accordingly

 Today in the programming world, we have more


than 800+ languages available.

 And every language is designed to fulfill a


particular kind of requirement
Brief History of Prog. Lang
 C Language was primarily designed to develop “System
Software's” like Operating Systems, Device Drives etc.

 To remove security problems with “C” language, C++ Language


was designed.

 It is an Object Oriented Language which provides data security


and can be used to solve real world problems.

 Many popular software's like Adobe Acrobat, Winamp Media


Player, Internet Explorer, Mozilla Firefox etc were designed in
C++
What is Python?
Python is a high-level programming language with dynamic semantics

Python is a general purpose and powerful programming language

Python is very attractive for Rapid Application Development, as well as


for use as a scripting or glue language to connect existing components
together.

Python supports modules and packages, which encourages program


modularity and code reuse.

Its high-level built in data structures, combined with dynamic typing


and dynamic binding

Python and can be freely distributed.


Who created Python?
 Developed by Guido van Rossum, a Dutch
scientist

 Created at Center For Mathematics and


Research, Netherland

 It is inspired by another programming


language called ABC

 Guido started Python development as a


hobby in Dec,1989 in Christmas vacations
Guido van Rossum Quotes
How Python got it’s name?

 The name Python is inspired from Guido’s


favorite Comedy TV show called “Monty
Python’s Flying Circus”

 Guido wanted a name that was short, unique,


and slightly mysterious, so he decided to call
the language Python.
Who manages Python today?
 From verison 2.1 onwards, python is managed by “Python
Software Foundation” situated in Delaware , USA

 It is a Non-Profit Organization devoted to the growth and


enhancement of Python language

 Their website is https://www.python.org


Features of Python
 Simple
 Time Management
 Memory Management
 Easy Maintenance
 Easy Modification
 Exception Handling
 Dynamically Typed
 Supports multiple Prog. Paradigms,
Embedded, Extensible
 Cross Platform
 Extensive Library
 Many more…
Python v/s Other Programming Languages
Point of Difference Python Java
Python program runs slower Java program runs faster than
Program run time
than Java python
Takes more time for developing
Program development time Takes less time than Java
same program
Python code is 3-5 times shorter
Length of the code Java code is longer than Python
than Java code
Type Python is dynamically typed Java is not dynamically typed

Point of Difference Python JavaScript


Python is an object based JavaScript is also an object
Object based
programming language based scripting language
Python can be used as scripting
JavaScript is only used for
Type language as well as
scripting language
programming language
Point of Difference Python Perl
Perl is also very close to Python
Basic Python is very close to Perl
programming language
Python supports common Perl supports common
programming methodologies application-oriented tasks
Programming methodologies such as data structure like built-in regular
and object-oriented expressions, file scanning and
programming report generating features

Point of Difference Python C++


Python code is 5-10 time C++ code is 5-10 times longer
Length of code
shorter than C++ code than Python code
Python is pure OOPS C++ is not a pure OOPS
OOPS
programming language programming language
How Python Is Simple ?
 In C  In Java
#include <stdio.h> public class Helloap2v{
int main () public static void main(String[]args)
{ {
printf (“hello ap2v…”); System.out.println(‘Hello ap2v…’);
return 0; }
} }

 In Python
print “hello ap2v…”
Add 2 numbers program…
 In Java
 In C
public class Helloap2v{
#include <stdio.h>
public static void main(String[]args)
int main ()
{
{
int a=10,b=20;
int a=10,b=20;
System.out.println(‘sum is ’ + (a+b));
printf (“sum is %d ”, a+b );
}
return 0;
}
}

 In Python
a,b=10,20
print “sum is ”,a+b
Dynamically Typed Python
Statically Typed (C/C++/Java)
 In C
• Need to declare variable type before using it int a;
• Cannot change variable type at runtime a=10
• Variable can hold only one type of value throughout its
a=“Ap2v Solutions”;
lifetime

Dynamically Typed (Python)


 In Python
• Do not need to declare variable type a=10
• Can change variable type at runtime
• Variable can hold different types of value through its a=“Ap2v Solutions”
lifetime
What Python can do ?
 Web and Internet Development
 Scientific and Numeric
 Education
 Desktop GUIs
 Software Development
 Embedded Systems
 Business Applications
 Games and 3D Graphics
 Network Programming
 Database Access
 And Many More…
GUI in Python
 Python is used for GUI apps all the time.

 It has famous libraries like PyQT, Tkinter to build desktop apps.

 Like, Music Player GUI Kit made in Python.


Web Application in Python
 We can use Python to create web applications on many levels of
complexity.

 There are many excellent Python frameworks like Django,


Pyramid and Flask for this purpose.
Data Analysis In Python
 Data Analysis is about making predictions with data

 Python is the leading language of choice for many data scientists

 It has grown in popularity due to it’s excellent libraries like NumPy,


Pandas etc
Machine Learning In Python
 Machine Learning is a field of AI(Artificial
Intelligence) by using which Software applications
can learn to increase their accuracy for the
expecting outcomes

 It is heavily used in Face recognition, music


recommendation, medical data, marketing etc

 Python has many wonderful libraries to implement


ML algos like SciKit-Learn, Tensorflow etc
Raspberry Pi In Python
 The Raspberry Pi is a low cost, credit-card sized computer that
plugs into a computer monitor or TV, and uses a standard keyboard
and mouse.

 It can do almost everything a normal desktop can do


Raspberry Pi In Python
 We can build Home Automation System and even robots using
Raspberry – Pi

 The coding on a Raspberry Pi can be performed using Python


Game Development In Python
 We can write whole games in Python using PyGame.

 Popular games developed in Python are:

 Bridge Commander

 Civilization IV

 Battlefield 2

 Eve Online

 Freedom Force

 Etc…
Why Should I Learn Python ?
 Most Popular Programming Language in World

 Fastest Growing Language

 Opens lots of doors

 Big corporates prefer Python

 Means, Python is the Future


Popular Prog. Lang. growth in Past 5 Years
Popular Prog. Lang. growth from 2017 -18
Python and Java comparison from 2013-18
Programming Languages in 2018
Who uses Python?
 Google
 NASA
 Dropbox
 Yahoo
 Quera
 Instagram
 Youtube
 Yahoo! Map
 Shopzilla
 & the list goes on…..
 Address
M44, 2nd Floor, Old DLF Colony, Sector 14,
Gurugram, Haryana 122001

 Contact Numbers
+91-124-4364210
+91-9210-333-323

 Email Address
info@ap2v.com
 Address
C-20, 2nd Floor, Sector – 2, Noida – 201301.
Landmark – Nirula’s

 Contact Numbers
+91-120-4324774
+91-9711-703-453

 Email Address
training@ap2v.com

Das könnte Ihnen auch gefallen