SlideShare a Scribd company logo
1 of 38
PYTHON
LECTURE 1
Today’s Agenda
An Introduction to Python
• Necessity Of Programming
• What Is Python ?
• Why And Who Created It ?
• What Python Can Do ?
• Why Should I Learn Python ?
• 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
850 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
Softwares” like Operating Systems, Device Drivers 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 softwares like Adobe Acrobat , Winamp Media
Player,Internet Explorer,Mozilla Firefox etc were designed in
C++
What is Python ?
 Python is a general purpose and powerful
programming language.
 Python is considered as one of the most versatile
programming language as it can be used to develop
almost any kind of application including desktop
application , web applications , mobile
application , network programming , image
processing and many more.
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
Why was Python
created ?
 Guido started Python
development as a hobby in
1989
 But since then it has grown to
become one of the most
polished languages of the
computing world.
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 version 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
http://www.python.org
What Python can do ?
 GUI Application
 Web Application
 Data Analysis
 AI & ML
 Raspberry Pi
 Hacking
GUI In Python
 Python is used for GUI
apps all the time.
 It has famous libraries
like PyQT , Tkinter to
build desktop apps.
Web Application
In Python
 We can use Python to
create web
applications on many
levels of complexity
Famous Websites Developed
Using Python
 There are numerous examples of popular, high-
load websites/webapps that have been developed
using Python.
 Here are some of the most popular of them:
 NASA
 Instagram
 Mozilla
 Spotify
 Reddit
 Dropbox
 And above all YouTube
Web Application
In Python
 There are many
excellent Python
frameworks like
Django, Flask for web
application
development
Data Analysis In Python
 Data Analysis is about
making predictions
with data
Some Examples
 How do you think Super
Market stores decide
what products to keep in
stock?
 What are the items they
should club together to
make a combo?
 How it happens ?
 Answer: Data analytics
Some Examples
 Have you noticed that
every time you log on to
Google, Facebook and
see ads, they are based
on your preferences ?
 How it happens ?
 Answer: Data analytics
Data Analysis In Python
 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
AI & ML
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 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
Hacking In Python
 Python has gained
popularity as
preferred language for
hacking.
 Hackers generally
develop small scripts
and Python provides
amazing performance
for small programs
Why should
I learn Python ?
 3rd most popular programming
 Fastest growing language
 Opens lots of doors
 Big corporate prefer Python
 Means , PYTHON IS THE
FUTURE
Who uses Python
today ?
Features Of Python
 Simple
 Dynamically Typed
 Robust
 Supports multiple programming paradigms
 Compiled as well as Interpreted
 Cross Platform
 Extensible
 Huge Library
Simple
 Python is very simple
 As compared to other popular languages like Java and
C++, it is easier to code in Python.
 Python code is comparatively 3 to 5 times smaller than
C/C++/Java code
Print Hello Bhopal!
IN C
#include <stdio.h>
int main(){
printf("Hello Bhopal!");
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
System.out.println( "Hello Bhopal!" );
}
}
IN PYTHON
print('Hello Bhopal!')
Add 2 Nos
IN C
#include <stdio.h>
int main(){
int a=10,b=20;
printf(“Sum is %d”,a+b);
return 0;
}
IN JAVA
public class HelloWorld{
public static void main( String[] args ) {
int a=10,b=20;
System.out.println( “Sum is “+(a+b));
}
}
IN PYTHON
a,b=10,20
print(“Sum is”,a+b)
Swap 2 Nos
IN C
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN JAVA
int a=10,b=20,temp;
temp=a;
a=b;
b=temp;
IN PYTHON
a,b=10,20
a,b=b,a
Dynamically Typed
Dynamically Typed
IN Python
a=10
a=“Bhopal”
IN C
int a;
a=10;
a=“Bhopal”;
Robust
 Python has very strict rules which every program must
compulsorily follow and if these rules are violated then Python
terminates the code by generating “Exception”
 To understand python’s robustness , guess the output of the
following /C++ code:
int arr[5];
int i;
for(i=0;i<=9;i++)
{
arr[i]=i+1;
}
Robust
 In Python if we write the same code then it will generate
Exception terminating the code
 Due to this other running programs on the computer do
not get affected and the system remains safe and secure
Supports Multiple
Programming Paradigms
 Python supports both procedure-oriented and object-
oriented programming which is one of the key python
features.
 In procedure-oriented languages, the program is built
around procedures or functions which are nothing but
reusable pieces of programs.
 In object-oriented languages, the program is built
around objects which combine data and functionality
Compiled
As Well As Interpreted
 Python uses both a compiler as well as interpreter for
converting our source and running it
 However , the compilation part is hidden from the
programmer ,so mostly people say it is an interpreted
language
Cross Platform
 Let’s assume we’ve written a Python code for our
Windows machine.
 Now, if we want to run it on a Mac, we don’t need to make
changes to it for the same.
 In other words, we can take one code and run it on any
machine, there is no need to write different code for
different machines.
 This makes Python a cross platform language
Extensible
 Python allows us to call C/C++/Java code from a
Python code and thus we say it is an extensible language
 We generally use this feature when we need a critical piece
of code to run very fast .
 So we can code that part of our program in C or C++ and
then use it from our Python program.
Huge Library
 The Python Standard Library is huge indeed.
 It can help you do various things like Database
Programming , E-mailing ,GUI Programming etc

More Related Content

Similar to Python Intro Lecture

introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)guobichrng
 
Capabilities Of Python App Development In 2022.pdf
Capabilities Of  Python App Development In 2022.pdfCapabilities Of  Python App Development In 2022.pdf
Capabilities Of Python App Development In 2022.pdfCerebrum Infotech
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET Journal
 
Type of apps that can be developed using python
Type of apps that can be developed using pythonType of apps that can be developed using python
Type of apps that can be developed using pythonSemidot Infotech
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfAyushDutta32
 
Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Moon Technolabs Pvt. Ltd.
 
python Certification Training in marthahalli
python Certification Training in marthahallipython Certification Training in marthahalli
python Certification Training in marthahalliMUDDUKRISHNA14
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMindfire LLC
 
Python programming for beginners
Python programming for beginnersPython programming for beginners
Python programming for beginnersBenishchoco
 
All you need to know about Python | BJIT
All you need to know about Python | BJITAll you need to know about Python | BJIT
All you need to know about Python | BJITBJIT Ltd
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - IArnab Chakraborty
 
Python and Its fascinating applications in the real world.pdf
Python and Its fascinating applications in the real world.pdfPython and Its fascinating applications in the real world.pdf
Python and Its fascinating applications in the real world.pdfSkilloVilla
 
Build Real-World Mobile Applications With Python App Development Services Com...
Build Real-World Mobile Applications With Python App Development Services Com...Build Real-World Mobile Applications With Python App Development Services Com...
Build Real-World Mobile Applications With Python App Development Services Com...Cerebrum Infotech
 
9 good reasons why you must consider python for web applications
9 good reasons why you must consider python for web applications 9 good reasons why you must consider python for web applications
9 good reasons why you must consider python for web applications SnehaDas60
 

Similar to Python Intro Lecture (20)

Python
PythonPython
Python
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Capabilities Of Python App Development In 2022.pdf
Capabilities Of  Python App Development In 2022.pdfCapabilities Of  Python App Development In 2022.pdf
Capabilities Of Python App Development In 2022.pdf
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming Language
 
Type of apps that can be developed using python
Type of apps that can be developed using pythonType of apps that can be developed using python
Type of apps that can be developed using python
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
 
Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...Types of Applications That Can Be Built Using The Python App Development Fram...
Types of Applications That Can Be Built Using The Python App Development Fram...
 
_python Raunak.pptx
_python Raunak.pptx_python Raunak.pptx
_python Raunak.pptx
 
python Certification Training in marthahalli
python Certification Training in marthahallipython Certification Training in marthahalli
python Certification Training in marthahalli
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
 
Python programming for beginners
Python programming for beginnersPython programming for beginners
Python programming for beginners
 
All you need to know about Python | BJIT
All you need to know about Python | BJITAll you need to know about Python | BJIT
All you need to know about Python | BJIT
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - I
 
Python and Its fascinating applications in the real world.pdf
Python and Its fascinating applications in the real world.pdfPython and Its fascinating applications in the real world.pdf
Python and Its fascinating applications in the real world.pdf
 
Python training Course in Mohali
Python training Course in MohaliPython training Course in Mohali
Python training Course in Mohali
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
Build Real-World Mobile Applications With Python App Development Services Com...
Build Real-World Mobile Applications With Python App Development Services Com...Build Real-World Mobile Applications With Python App Development Services Com...
Build Real-World Mobile Applications With Python App Development Services Com...
 
9 good reasons why you must consider python for web applications
9 good reasons why you must consider python for web applications 9 good reasons why you must consider python for web applications
9 good reasons why you must consider python for web applications
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 

Recently uploaded

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Recently uploaded (20)

Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 

Python Intro Lecture

  • 2. Today’s Agenda An Introduction to Python • Necessity Of Programming • What Is Python ? • Why And Who Created It ? • What Python Can Do ? • Why Should I Learn Python ? • Important Features
  • 3. Why Do We Need Programming ? • To communicate with digital machines and make them work accordingly • Today in the programming world , we have more than 850 languages available. • And every language is designed to fulfill a particular kind of requirement
  • 4. Brief History Of Prog. Lang  C language was primarily designed to develop “System Softwares” like Operating Systems, Device Drivers 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 softwares like Adobe Acrobat , Winamp Media Player,Internet Explorer,Mozilla Firefox etc were designed in C++
  • 5. What is Python ?  Python is a general purpose and powerful programming language.  Python is considered as one of the most versatile programming language as it can be used to develop almost any kind of application including desktop application , web applications , mobile application , network programming , image processing and many more.
  • 6. 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
  • 7. Why was Python created ?  Guido started Python development as a hobby in 1989  But since then it has grown to become one of the most polished languages of the computing world.
  • 8. 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.
  • 9. Who manages Python today ?  From version 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 http://www.python.org
  • 10. What Python can do ?  GUI Application  Web Application  Data Analysis  AI & ML  Raspberry Pi  Hacking
  • 11. GUI In Python  Python is used for GUI apps all the time.  It has famous libraries like PyQT , Tkinter to build desktop apps.
  • 12. Web Application In Python  We can use Python to create web applications on many levels of complexity
  • 13. Famous Websites Developed Using Python  There are numerous examples of popular, high- load websites/webapps that have been developed using Python.  Here are some of the most popular of them:  NASA  Instagram  Mozilla  Spotify  Reddit  Dropbox  And above all YouTube
  • 14. Web Application In Python  There are many excellent Python frameworks like Django, Flask for web application development
  • 15. Data Analysis In Python  Data Analysis is about making predictions with data
  • 16. Some Examples  How do you think Super Market stores decide what products to keep in stock?  What are the items they should club together to make a combo?  How it happens ?  Answer: Data analytics
  • 17. Some Examples  Have you noticed that every time you log on to Google, Facebook and see ads, they are based on your preferences ?  How it happens ?  Answer: Data analytics
  • 18. Data Analysis In Python  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
  • 19. AI & ML 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 etc  Python has many wonderful libraries to implement ML algos like SciKit-Learn , Tensorflow etc
  • 20. 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
  • 21. 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
  • 22. Hacking In Python  Python has gained popularity as preferred language for hacking.  Hackers generally develop small scripts and Python provides amazing performance for small programs
  • 23. Why should I learn Python ?  3rd most popular programming  Fastest growing language  Opens lots of doors  Big corporate prefer Python  Means , PYTHON IS THE FUTURE
  • 25. Features Of Python  Simple  Dynamically Typed  Robust  Supports multiple programming paradigms  Compiled as well as Interpreted  Cross Platform  Extensible  Huge Library
  • 26. Simple  Python is very simple  As compared to other popular languages like Java and C++, it is easier to code in Python.  Python code is comparatively 3 to 5 times smaller than C/C++/Java code
  • 27. Print Hello Bhopal! IN C #include <stdio.h> int main(){ printf("Hello Bhopal!"); return 0; } IN JAVA public class HelloWorld{ public static void main( String[] args ) { System.out.println( "Hello Bhopal!" ); } } IN PYTHON print('Hello Bhopal!')
  • 28. Add 2 Nos IN C #include <stdio.h> int main(){ int a=10,b=20; printf(“Sum is %d”,a+b); return 0; } IN JAVA public class HelloWorld{ public static void main( String[] args ) { int a=10,b=20; System.out.println( “Sum is “+(a+b)); } } IN PYTHON a,b=10,20 print(“Sum is”,a+b)
  • 29. Swap 2 Nos IN C int a=10,b=20,temp; temp=a; a=b; b=temp; IN JAVA int a=10,b=20,temp; temp=a; a=b; b=temp; IN PYTHON a,b=10,20 a,b=b,a
  • 31. Dynamically Typed IN Python a=10 a=“Bhopal” IN C int a; a=10; a=“Bhopal”;
  • 32. Robust  Python has very strict rules which every program must compulsorily follow and if these rules are violated then Python terminates the code by generating “Exception”  To understand python’s robustness , guess the output of the following /C++ code: int arr[5]; int i; for(i=0;i<=9;i++) { arr[i]=i+1; }
  • 33. Robust  In Python if we write the same code then it will generate Exception terminating the code  Due to this other running programs on the computer do not get affected and the system remains safe and secure
  • 34. Supports Multiple Programming Paradigms  Python supports both procedure-oriented and object- oriented programming which is one of the key python features.  In procedure-oriented languages, the program is built around procedures or functions which are nothing but reusable pieces of programs.  In object-oriented languages, the program is built around objects which combine data and functionality
  • 35. Compiled As Well As Interpreted  Python uses both a compiler as well as interpreter for converting our source and running it  However , the compilation part is hidden from the programmer ,so mostly people say it is an interpreted language
  • 36. Cross Platform  Let’s assume we’ve written a Python code for our Windows machine.  Now, if we want to run it on a Mac, we don’t need to make changes to it for the same.  In other words, we can take one code and run it on any machine, there is no need to write different code for different machines.  This makes Python a cross platform language
  • 37. Extensible  Python allows us to call C/C++/Java code from a Python code and thus we say it is an extensible language  We generally use this feature when we need a critical piece of code to run very fast .  So we can code that part of our program in C or C++ and then use it from our Python program.
  • 38. Huge Library  The Python Standard Library is huge indeed.  It can help you do various things like Database Programming , E-mailing ,GUI Programming etc