SlideShare a Scribd company logo
6
Applications of Python
• Python is easy to pick-up even if you come from a non-programming background. You can look at
the code and tell what’s going on.
• Talking of Python applications, some of the cool things that you can do are –
• Build a website using Python
• Develop a game in Python
• Perform Computer Vision (Facilities like face-detection and color-detection)
• Implement Machine Learning (Give a computer the ability to learn)
• Enable Robotics with Python
• Perform Web Scraping (Harvest data from websites)
• Perform Data Analysis using Python
• Automate a web browser
• Perform Scripting in Python
• Perform Scientific Computing using Python
• Build Artificial Intelligence
Python isn’t limited to these applications. If you’ve
ever used services from brands like YouTube,
Dropbox, and Netflix, then you’ve been a consumer
of Python.
The search-engine Google also made great use of
this language in its initial stages.
Most read
8
Python Constructs
a. Functions in Python
• A function in Python is a collection of statements grouped under a
name. You can use it whenever you want to execute all those statements
at a time.
• You can call it wherever you want and as many times as you want in a
program. A function may return a value.
b. Classes in Python
• As we discussed earlier, Python is an object-oriented language. It
supports classes and objects.
• A class is an abstract data type. In other words, it is a blueprint for an
object of a certain kind. It holds no values.
• An object is a real-world entity and an instance of a class.
Most read
9
c. Modules in Python
• Python module is a collection of related classes and functions.
• We have modules for mathematical calculations, string manipulations,
web programming, and many more.
d. Packages in Python
• Python package is a collection of related modules. You can either
import a package or create your own.
• Python has a lot of other constructs. These include control structures,
functions, exceptions, etc.
Most read
Introduction to Python –
Learn Python Programming
What is Python?
• Python is a General Purpose object-oriented programming
language, which means that it can model real-world entities. It
is also dynamically-typed because it carries out type-checking at
runtime.
• It does so to make sure that the type of construct matches what
we expect it to be.
• The distinctive feature of Python is that it is an interpreted
language.
• The Python IDLE (Integrated Development Environment)
executes instructions one line at a time. This also lets us use it as
a calculator.
Why is it called Python?
• Guido van Rossum named it after the comedy group Monty
Python. That is why the metasyntactic variables (those we will
often use to explain code syntax) used here are ‘spam’ and ‘eggs’
instead of ‘foo’ and ‘bar’.
History of Python
• Python was conceived in the late 1980s and was named after
the BBC TV show Monty Python’s Flying Circus.
• Guido van Rossum started implementing Python at CWI in the
Netherlands in December of 1989.
• This was a successor to the ABC programming language which
was capable of exception handling and interfacing with the
Amoeba operating system.
• On October 16 of 2000, Python 2.0 released with many new
features.
• Then Python 3.0 was released on December 3, 2008.
Why Learn Python?
Python is the “most powerful language you can still
read”, Says Paul Dubois
Python is one of the richest Programming languages.
Going by the TIOBE Index, Python is the Most Popular Programming Language in
the world.
This makes a career in Python a great choice.
Applications of Python
• Python is easy to pick-up even if you come from a non-programming background. You can look at
the code and tell what’s going on.
• Talking of Python applications, some of the cool things that you can do are –
• Build a website using Python
• Develop a game in Python
• Perform Computer Vision (Facilities like face-detection and color-detection)
• Implement Machine Learning (Give a computer the ability to learn)
• Enable Robotics with Python
• Perform Web Scraping (Harvest data from websites)
• Perform Data Analysis using Python
• Automate a web browser
• Perform Scripting in Python
• Perform Scientific Computing using Python
• Build Artificial Intelligence
Python isn’t limited to these applications. If you’ve
ever used services from brands like YouTube,
Dropbox, and Netflix, then you’ve been a consumer
of Python.
The search-engine Google also made great use of
this language in its initial stages.
Python Architecture and Working
• Let’s now talk about Python architecture and its usual flow –
• a. Parser
• It uses the source code to generate an abstract syntax tree.
• b. Compiler
• It turns the abstract syntax tree into Python bytecode.
• c. Interpreter
• It executes the code line by line in a REPL (Read-Evaluate-
Print-Loop) fashion.
Python Constructs
a. Functions in Python
• A function in Python is a collection of statements grouped under a
name. You can use it whenever you want to execute all those statements
at a time.
• You can call it wherever you want and as many times as you want in a
program. A function may return a value.
b. Classes in Python
• As we discussed earlier, Python is an object-oriented language. It
supports classes and objects.
• A class is an abstract data type. In other words, it is a blueprint for an
object of a certain kind. It holds no values.
• An object is a real-world entity and an instance of a class.
c. Modules in Python
• Python module is a collection of related classes and functions.
• We have modules for mathematical calculations, string manipulations,
web programming, and many more.
d. Packages in Python
• Python package is a collection of related modules. You can either
import a package or create your own.
• Python has a lot of other constructs. These include control structures,
functions, exceptions, etc.
2. Python syntax
• Example of Python Syntax
• Python is a popular language because of its elegant syntax
structure.
• Let’s take a quick look at a simple Python program and you will
get an idea of how programming in Python looks like.

More Related Content

Similar to Introduction to Python – Learn Python Programming.pptx (20)

Python intro
Python introPython intro
Python intro
Piyush rai
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
DineshThakur911173
 
Python-Yesterday Today Tomorrow(What's new?)
Python-Yesterday Today Tomorrow(What's new?)Python-Yesterday Today Tomorrow(What's new?)
Python-Yesterday Today Tomorrow(What's new?)
Mohan Arumugam
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Mohammed Rafi
 
Python presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharPython presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, Bihar
UttamKumar617567
 
Python basics
Python basicsPython basics
Python basics
ssuser4e32df
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Nikhil Kapoor
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
abclara
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
HaythamBarakeh1
 
python programming unit 1 wala ppt .pptx
python programming unit 1 wala ppt .pptxpython programming unit 1 wala ppt .pptx
python programming unit 1 wala ppt .pptx
AnaIyer1
 
Learn Python Python Introduction for Beginners.pdf
Learn Python  Python Introduction for Beginners.pdfLearn Python  Python Introduction for Beginners.pdf
Learn Python Python Introduction for Beginners.pdf
SudhanshiBakre1
 
Python Class 1
Python Class 1Python Class 1
Python Class 1
arijit banerjee
 
Python Programming1.ppt
Python Programming1.pptPython Programming1.ppt
Python Programming1.ppt
Rehnawilson1
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
LakshmiNarayanaReddy48
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
guobichrng
 
Python programming
Python programmingPython programming
Python programming
Megha V
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
 
Python-Yesterday Today Tomorrow(What's new?)
Python-Yesterday Today Tomorrow(What's new?)Python-Yesterday Today Tomorrow(What's new?)
Python-Yesterday Today Tomorrow(What's new?)
Mohan Arumugam
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Mohammed Rafi
 
Python presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharPython presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, Bihar
UttamKumar617567
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Nikhil Kapoor
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
abclara
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
HaythamBarakeh1
 
python programming unit 1 wala ppt .pptx
python programming unit 1 wala ppt .pptxpython programming unit 1 wala ppt .pptx
python programming unit 1 wala ppt .pptx
AnaIyer1
 
Learn Python Python Introduction for Beginners.pdf
Learn Python  Python Introduction for Beginners.pdfLearn Python  Python Introduction for Beginners.pdf
Learn Python Python Introduction for Beginners.pdf
SudhanshiBakre1
 
Python Programming1.ppt
Python Programming1.pptPython Programming1.ppt
Python Programming1.ppt
Rehnawilson1
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
guobichrng
 
Python programming
Python programmingPython programming
Python programming
Megha V
 

More from HassanShah396906 (17)

Matlab Functions for programming fundamentals
Matlab Functions for programming fundamentalsMatlab Functions for programming fundamentals
Matlab Functions for programming fundamentals
HassanShah396906
 
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptxTwo-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
HassanShah396906
 
Thin Film Deposition techniques [Autosaved].pptx
Thin Film Deposition techniques [Autosaved].pptxThin Film Deposition techniques [Autosaved].pptx
Thin Film Deposition techniques [Autosaved].pptx
HassanShah396906
 
Error analysis techniques and observations.ppt
Error analysis techniques and observations.pptError analysis techniques and observations.ppt
Error analysis techniques and observations.ppt
HassanShah396906
 
lit-review-presentation [Autosaved].pptx
lit-review-presentation [Autosaved].pptxlit-review-presentation [Autosaved].pptx
lit-review-presentation [Autosaved].pptx
HassanShah396906
 
Bone Cement.pptx
Bone Cement.pptxBone Cement.pptx
Bone Cement.pptx
HassanShah396906
 
Optoelectronics Device’s.pptx
Optoelectronics Device’s.pptxOptoelectronics Device’s.pptx
Optoelectronics Device’s.pptx
HassanShah396906
 
5.Introduction_to_Heisenberg_model.pptx
5.Introduction_to_Heisenberg_model.pptx5.Introduction_to_Heisenberg_model.pptx
5.Introduction_to_Heisenberg_model.pptx
HassanShah396906
 
M1 - Research Philosophy and Methods.pptx
M1 - Research Philosophy and Methods.pptxM1 - Research Philosophy and Methods.pptx
M1 - Research Philosophy and Methods.pptx
HassanShah396906
 
Finite Element Method.pptx
Finite Element Method.pptxFinite Element Method.pptx
Finite Element Method.pptx
HassanShah396906
 
Ch # 9 Electrode Polarization.pptx
Ch # 9 Electrode Polarization.pptxCh # 9 Electrode Polarization.pptx
Ch # 9 Electrode Polarization.pptx
HassanShah396906
 
2. Chap 1.pptx
2. Chap 1.pptx2. Chap 1.pptx
2. Chap 1.pptx
HassanShah396906
 
Density Functional Theory.pptx
Density Functional Theory.pptxDensity Functional Theory.pptx
Density Functional Theory.pptx
HassanShah396906
 
5. Summing Series.pptx
5. Summing Series.pptx5. Summing Series.pptx
5. Summing Series.pptx
HassanShah396906
 
Molecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptxMolecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptx
HassanShah396906
 
Interconnects.pptx
Interconnects.pptxInterconnects.pptx
Interconnects.pptx
HassanShah396906
 
VMDL_FEATURES.ppt
VMDL_FEATURES.pptVMDL_FEATURES.ppt
VMDL_FEATURES.ppt
HassanShah396906
 
Matlab Functions for programming fundamentals
Matlab Functions for programming fundamentalsMatlab Functions for programming fundamentals
Matlab Functions for programming fundamentals
HassanShah396906
 
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptxTwo-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
Two-Phase Nonisothermal Zero-Gap Alkaline Membrane Water Electrolyzer.pptx
HassanShah396906
 
Thin Film Deposition techniques [Autosaved].pptx
Thin Film Deposition techniques [Autosaved].pptxThin Film Deposition techniques [Autosaved].pptx
Thin Film Deposition techniques [Autosaved].pptx
HassanShah396906
 
Error analysis techniques and observations.ppt
Error analysis techniques and observations.pptError analysis techniques and observations.ppt
Error analysis techniques and observations.ppt
HassanShah396906
 
lit-review-presentation [Autosaved].pptx
lit-review-presentation [Autosaved].pptxlit-review-presentation [Autosaved].pptx
lit-review-presentation [Autosaved].pptx
HassanShah396906
 
Optoelectronics Device’s.pptx
Optoelectronics Device’s.pptxOptoelectronics Device’s.pptx
Optoelectronics Device’s.pptx
HassanShah396906
 
5.Introduction_to_Heisenberg_model.pptx
5.Introduction_to_Heisenberg_model.pptx5.Introduction_to_Heisenberg_model.pptx
5.Introduction_to_Heisenberg_model.pptx
HassanShah396906
 
M1 - Research Philosophy and Methods.pptx
M1 - Research Philosophy and Methods.pptxM1 - Research Philosophy and Methods.pptx
M1 - Research Philosophy and Methods.pptx
HassanShah396906
 
Finite Element Method.pptx
Finite Element Method.pptxFinite Element Method.pptx
Finite Element Method.pptx
HassanShah396906
 
Ch # 9 Electrode Polarization.pptx
Ch # 9 Electrode Polarization.pptxCh # 9 Electrode Polarization.pptx
Ch # 9 Electrode Polarization.pptx
HassanShah396906
 
Density Functional Theory.pptx
Density Functional Theory.pptxDensity Functional Theory.pptx
Density Functional Theory.pptx
HassanShah396906
 
Molecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptxMolecular dynamics Simulation.pptx
Molecular dynamics Simulation.pptx
HassanShah396906
 
Ad

Recently uploaded (20)

Telehealth For Maternal and Child Health: Expanding Access (www.kiu.ac.ug)
Telehealth For Maternal and Child Health: Expanding  Access (www.kiu.ac.ug)Telehealth For Maternal and Child Health: Expanding  Access (www.kiu.ac.ug)
Telehealth For Maternal and Child Health: Expanding Access (www.kiu.ac.ug)
publication11
 
Class 12 biology project on the topic cancer
Class 12 biology project on the topic cancerClass 12 biology project on the topic cancer
Class 12 biology project on the topic cancer
crazycompetitor000
 
Microbiome Engineering: Shaping a Sustainable Future.pptx
Microbiome Engineering: Shaping a Sustainable Future.pptxMicrobiome Engineering: Shaping a Sustainable Future.pptx
Microbiome Engineering: Shaping a Sustainable Future.pptx
akshjm123
 
Conservation Of Natural Resources 1.pptx
Conservation Of Natural Resources 1.pptxConservation Of Natural Resources 1.pptx
Conservation Of Natural Resources 1.pptx
nandhakumar2712013
 
Immunity and its Types.hububhubibkinunubunni
Immunity and its Types.hububhubibkinunubunniImmunity and its Types.hububhubibkinunubunni
Immunity and its Types.hububhubibkinunubunni
Manveer19
 
Comparative Layouts Revisited: Design Space, Guidelines, and Future Directions
Comparative Layouts Revisited: Design Space, Guidelines, and Future DirectionsComparative Layouts Revisited: Design Space, Guidelines, and Future Directions
Comparative Layouts Revisited: Design Space, Guidelines, and Future Directions
sehilyi
 
Pillbug Science Experiment Slides Presentation
Pillbug Science Experiment Slides PresentationPillbug Science Experiment Slides Presentation
Pillbug Science Experiment Slides Presentation
sawyerkwoodruff
 
Pushkar camel fest at college campus placement
Pushkar camel fest at college campus placementPushkar camel fest at college campus placement
Pushkar camel fest at college campus placement
nandanitiwari82528
 
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Dr.Devraj Neupane
 
Toward Understanding Representation Methods in Visualization Recommendations ...
Toward Understanding Representation Methods in Visualization Recommendations ...Toward Understanding Representation Methods in Visualization Recommendations ...
Toward Understanding Representation Methods in Visualization Recommendations ...
sehilyi
 
Multi-View Design Patterns & 
Responsive Visualization for
Genomics Data
Multi-View Design Patterns & 
Responsive Visualization for
Genomics DataMulti-View Design Patterns & 
Responsive Visualization for
Genomics Data
Multi-View Design Patterns & 
Responsive Visualization for
Genomics Data
sehilyi
 
Kim Sandwich Biomes Project Science 10.pptx
Kim Sandwich Biomes Project Science 10.pptxKim Sandwich Biomes Project Science 10.pptx
Kim Sandwich Biomes Project Science 10.pptx
asantos691
 
the presentation on pyruvate dehydrogenase complex (PDH).pptx
the presentation on pyruvate dehydrogenase complex (PDH).pptxthe presentation on pyruvate dehydrogenase complex (PDH).pptx
the presentation on pyruvate dehydrogenase complex (PDH).pptx
aanchalm373
 
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdfHOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
Faga1939
 
Agriculture fruit production for crrot candy amala candy banana sudi stem borrer
Agriculture fruit production for crrot candy amala candy banana sudi stem borrerAgriculture fruit production for crrot candy amala candy banana sudi stem borrer
Agriculture fruit production for crrot candy amala candy banana sudi stem borrer
kanopatel8840
 
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRA
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRAAlgebra A BASIC REVIEW INTERMEDICATE ALGEBRA
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRA
ropamadoda
 
Entomopath angrau third year path 365pdf
Entomopath angrau third year path 365pdfEntomopath angrau third year path 365pdf
Entomopath angrau third year path 365pdf
zap6635
 
To study the factors on which the self-inductance of the coil depends by obse...
To study the factors on which the self-inductance of the coil depends by obse...To study the factors on which the self-inductance of the coil depends by obse...
To study the factors on which the self-inductance of the coil depends by obse...
crazycompetitor000
 
Scientific Instruments Market (PPT) (Satiyam).pptx
Scientific Instruments Market (PPT) (Satiyam).pptxScientific Instruments Market (PPT) (Satiyam).pptx
Scientific Instruments Market (PPT) (Satiyam).pptx
Expert Market Research
 
AFFORDABLE IT Software Development India
AFFORDABLE IT Software Development IndiaAFFORDABLE IT Software Development India
AFFORDABLE IT Software Development India
Affordable Cross-Platform App Developers
 
Telehealth For Maternal and Child Health: Expanding Access (www.kiu.ac.ug)
Telehealth For Maternal and Child Health: Expanding  Access (www.kiu.ac.ug)Telehealth For Maternal and Child Health: Expanding  Access (www.kiu.ac.ug)
Telehealth For Maternal and Child Health: Expanding Access (www.kiu.ac.ug)
publication11
 
Class 12 biology project on the topic cancer
Class 12 biology project on the topic cancerClass 12 biology project on the topic cancer
Class 12 biology project on the topic cancer
crazycompetitor000
 
Microbiome Engineering: Shaping a Sustainable Future.pptx
Microbiome Engineering: Shaping a Sustainable Future.pptxMicrobiome Engineering: Shaping a Sustainable Future.pptx
Microbiome Engineering: Shaping a Sustainable Future.pptx
akshjm123
 
Conservation Of Natural Resources 1.pptx
Conservation Of Natural Resources 1.pptxConservation Of Natural Resources 1.pptx
Conservation Of Natural Resources 1.pptx
nandhakumar2712013
 
Immunity and its Types.hububhubibkinunubunni
Immunity and its Types.hububhubibkinunubunniImmunity and its Types.hububhubibkinunubunni
Immunity and its Types.hububhubibkinunubunni
Manveer19
 
Comparative Layouts Revisited: Design Space, Guidelines, and Future Directions
Comparative Layouts Revisited: Design Space, Guidelines, and Future DirectionsComparative Layouts Revisited: Design Space, Guidelines, and Future Directions
Comparative Layouts Revisited: Design Space, Guidelines, and Future Directions
sehilyi
 
Pillbug Science Experiment Slides Presentation
Pillbug Science Experiment Slides PresentationPillbug Science Experiment Slides Presentation
Pillbug Science Experiment Slides Presentation
sawyerkwoodruff
 
Pushkar camel fest at college campus placement
Pushkar camel fest at college campus placementPushkar camel fest at college campus placement
Pushkar camel fest at college campus placement
nandanitiwari82528
 
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Treatment of TMDS.by Dr.Devraj Neupane(MDS Resedent)
Dr.Devraj Neupane
 
Toward Understanding Representation Methods in Visualization Recommendations ...
Toward Understanding Representation Methods in Visualization Recommendations ...Toward Understanding Representation Methods in Visualization Recommendations ...
Toward Understanding Representation Methods in Visualization Recommendations ...
sehilyi
 
Multi-View Design Patterns & 
Responsive Visualization for
Genomics Data
Multi-View Design Patterns & 
Responsive Visualization for
Genomics DataMulti-View Design Patterns & 
Responsive Visualization for
Genomics Data
Multi-View Design Patterns & 
Responsive Visualization for
Genomics Data
sehilyi
 
Kim Sandwich Biomes Project Science 10.pptx
Kim Sandwich Biomes Project Science 10.pptxKim Sandwich Biomes Project Science 10.pptx
Kim Sandwich Biomes Project Science 10.pptx
asantos691
 
the presentation on pyruvate dehydrogenase complex (PDH).pptx
the presentation on pyruvate dehydrogenase complex (PDH).pptxthe presentation on pyruvate dehydrogenase complex (PDH).pptx
the presentation on pyruvate dehydrogenase complex (PDH).pptx
aanchalm373
 
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdfHOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
HOW TO FACE THREATS FROM THE FORCES OF NATURE EXISTING ON PLANET EARTH.pdf
Faga1939
 
Agriculture fruit production for crrot candy amala candy banana sudi stem borrer
Agriculture fruit production for crrot candy amala candy banana sudi stem borrerAgriculture fruit production for crrot candy amala candy banana sudi stem borrer
Agriculture fruit production for crrot candy amala candy banana sudi stem borrer
kanopatel8840
 
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRA
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRAAlgebra A BASIC REVIEW INTERMEDICATE ALGEBRA
Algebra A BASIC REVIEW INTERMEDICATE ALGEBRA
ropamadoda
 
Entomopath angrau third year path 365pdf
Entomopath angrau third year path 365pdfEntomopath angrau third year path 365pdf
Entomopath angrau third year path 365pdf
zap6635
 
To study the factors on which the self-inductance of the coil depends by obse...
To study the factors on which the self-inductance of the coil depends by obse...To study the factors on which the self-inductance of the coil depends by obse...
To study the factors on which the self-inductance of the coil depends by obse...
crazycompetitor000
 
Scientific Instruments Market (PPT) (Satiyam).pptx
Scientific Instruments Market (PPT) (Satiyam).pptxScientific Instruments Market (PPT) (Satiyam).pptx
Scientific Instruments Market (PPT) (Satiyam).pptx
Expert Market Research
 
Ad

Introduction to Python – Learn Python Programming.pptx

  • 1. Introduction to Python – Learn Python Programming
  • 2. What is Python? • Python is a General Purpose object-oriented programming language, which means that it can model real-world entities. It is also dynamically-typed because it carries out type-checking at runtime. • It does so to make sure that the type of construct matches what we expect it to be. • The distinctive feature of Python is that it is an interpreted language. • The Python IDLE (Integrated Development Environment) executes instructions one line at a time. This also lets us use it as a calculator.
  • 3. Why is it called Python? • Guido van Rossum named it after the comedy group Monty Python. That is why the metasyntactic variables (those we will often use to explain code syntax) used here are ‘spam’ and ‘eggs’ instead of ‘foo’ and ‘bar’.
  • 4. History of Python • Python was conceived in the late 1980s and was named after the BBC TV show Monty Python’s Flying Circus. • Guido van Rossum started implementing Python at CWI in the Netherlands in December of 1989. • This was a successor to the ABC programming language which was capable of exception handling and interfacing with the Amoeba operating system. • On October 16 of 2000, Python 2.0 released with many new features. • Then Python 3.0 was released on December 3, 2008.
  • 5. Why Learn Python? Python is the “most powerful language you can still read”, Says Paul Dubois Python is one of the richest Programming languages. Going by the TIOBE Index, Python is the Most Popular Programming Language in the world. This makes a career in Python a great choice.
  • 6. Applications of Python • Python is easy to pick-up even if you come from a non-programming background. You can look at the code and tell what’s going on. • Talking of Python applications, some of the cool things that you can do are – • Build a website using Python • Develop a game in Python • Perform Computer Vision (Facilities like face-detection and color-detection) • Implement Machine Learning (Give a computer the ability to learn) • Enable Robotics with Python • Perform Web Scraping (Harvest data from websites) • Perform Data Analysis using Python • Automate a web browser • Perform Scripting in Python • Perform Scientific Computing using Python • Build Artificial Intelligence Python isn’t limited to these applications. If you’ve ever used services from brands like YouTube, Dropbox, and Netflix, then you’ve been a consumer of Python. The search-engine Google also made great use of this language in its initial stages.
  • 7. Python Architecture and Working • Let’s now talk about Python architecture and its usual flow – • a. Parser • It uses the source code to generate an abstract syntax tree. • b. Compiler • It turns the abstract syntax tree into Python bytecode. • c. Interpreter • It executes the code line by line in a REPL (Read-Evaluate- Print-Loop) fashion.
  • 8. Python Constructs a. Functions in Python • A function in Python is a collection of statements grouped under a name. You can use it whenever you want to execute all those statements at a time. • You can call it wherever you want and as many times as you want in a program. A function may return a value. b. Classes in Python • As we discussed earlier, Python is an object-oriented language. It supports classes and objects. • A class is an abstract data type. In other words, it is a blueprint for an object of a certain kind. It holds no values. • An object is a real-world entity and an instance of a class.
  • 9. c. Modules in Python • Python module is a collection of related classes and functions. • We have modules for mathematical calculations, string manipulations, web programming, and many more. d. Packages in Python • Python package is a collection of related modules. You can either import a package or create your own. • Python has a lot of other constructs. These include control structures, functions, exceptions, etc.
  • 10. 2. Python syntax • Example of Python Syntax • Python is a popular language because of its elegant syntax structure. • Let’s take a quick look at a simple Python program and you will get an idea of how programming in Python looks like.