SlideShare a Scribd company logo
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 Lecture 1.pptx

Python
PythonPython
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.pdf
Cerebrum Infotech
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
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
IRJET 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 python
Semidot Infotech
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 
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 marthahalli
MUDDUKRISHNA14
 
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
Mindfire LLC
 
Python programming for beginners
Python programming for beginnersPython programming for beginners
Python programming for beginners
Benishchoco
 
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
BJIT Ltd
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - I
Arnab 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.pdf
SkilloVilla
 
Python training Course in Mohali
Python training Course in MohaliPython training Course in Mohali
Python training Course in Mohali
Excellence technology
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
LakshmiNarayanaReddy48
 
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
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
Biswajeet Dasmajumdar
 

Similar to Lecture 1.pptx (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

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 

Lecture 1.pptx

  • 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