SlideShare una empresa de Scribd logo
1 de 17
Descargar para leer sin conexión
Introduction To Python
Biswajeet. D
Python is an interpreted, object-oriented, high-level programming language with
dynamic semantics.
 First released in 1990
 Designed By: Guido van Rossum
 Name came from a 1970s British television show : Reference: https://www.python.org/~guido
Monty Python’s Flying Circus
Why Python ?
 Easy to learn
 Readable
 Simplicity
 Multipurpose
 Errors appear on runtime. . . . . .
A Sample Python Code Snippet……
R Vs Python – Swap 2 Variables Code
Comparison
Below is screenshot of swapping 2 variables without using a third
variable in R & Python
Python Material
Online Materials:
https://docs.python.org/3/
Other Resources:
http://www.sololearn.com/Course/Python/
Popular Python recipes
http://code.activestate.com/recipes/langs/python/
“Sololearn Python“
(A Simple Android
App for Beginners)
What is Python?
Multi Functional:
 Simple procedural programming
 Object-orientation
 Functional programming
Computer Programming for everybody :
 Portable: Different interpreters for many platforms: CPython, Jython, IronPython,
PyPy.
 Open source, so anyone can contribute to its development
 Code that is as understandable as plain English
 Suitability for everyday tasks, allowing for short development times
 Extensible: Reusable code using modules and packages
 Easy to write new modules in ‘C’.
Comparison with other languages
 Python code is typically 3-5 times shorter than equivalent Java code, it
is often 5-10 times shorter than equivalent C++ code!
 Anecdotal evidence suggests that one Python programmer can finish in two
months what two C++ programmers can't complete in a year.
 Python shines as a glue language, used to combine components written in
C++.
So, Python can increase productivity
Reference: https://www.python.org/doc/essays/comparisons/
Points to be noted
 “Python is a scripting language"
False. Python has been used as a scripting language, but it is also used
to develop large stand-alone applications.
Python is interpreted, thus slower than running native code
 True, But not always
 Python can be used to `glue' together native modules.
 Libraries (Numpy,Scipy etc.)are often very efficient.
 Dynamic typing is unsafe.
 Python is strongly typed and well behaved.
 It can deal with type errors at runtime.
Use Cases/Applications
 Application Development
 Web Development
 Scripting
 Scientific Computing
Success Stories: https://www.python.org/about/success/
Use Cases/Applications
 Google – Many components of search engine were written in Python
 Yahoo - maps were developed using Python
 RHEL – Installer developed using Python
 NASA – Uses Python as the main scripting language
The RedMonk Programming Language
Rankings: 2015
The RedMonk Programming Language
Rankings..(Cont’d)
Python in Big Data & Data Science
http://www.kdnuggets.com/2015/05/r-vs-python-data-
science.html
Python- Pros and Cons
 Pro: IPython Notebook or Jupyter
The IPython Notebook makes it easier to work with Python and data. You can
easily share notebooks with colleagues, without having them to install anything.
This drastically reduces the overhead of organizing code, output and notes
files. This will allow you to spend more time doing real work.
 A general purpose language
Python is a general purpose language that is easy and intuitive. This gives it a
relatively flat learning curve, and it increases the speed at which you can write
a program. In short, you need less time to code and you have more time to play
around with it! Furthermore, the Python testing framework is a built-in, low-
barrier-to-entry testing framework that encourages good test coverage. This
guarantees your code is reusable and dependable.
Pros & Cons (Cont’d)…..
 Pro :A multi purpose language
Python brings people with different backgrounds together. As a common,
easy to understand language that is known by programmers and that can
easily be learnt by statisticians, you can build a single tool that integrates
with every part of your workflow.
 Pro/Con: Visualizations
Visualizations are an important criteria when choosing data analysis software.
Although Python has some nice visualization libraries, such as Seaborn,
Bokeh and Pygal, Matplotlib etc.
 Con: Python is a challenger
Python is a challenger to R. It does not offer an alternative to the hundreds of
essential R packages, Although it‟s catching up.
Versions
Python2
 Python2 – Very Stable (Python-2.7) – All may not support
Python3
 Current Release – 3.5.1 (Released on 21-12-2015)
 Some major changes and clean-ups
 Not backward compatible (cannot execute 2.x code)
 V3.6 - Ongoing development

Más contenido relacionado

La actualidad más candente

Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
Kiran Vadakkath
 

La actualidad más candente (20)

POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
C++ vs python
C++ vs pythonC++ vs python
C++ vs python
 
Python programming
Python programmingPython programming
Python programming
 
Python, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for EngineersPython, the Language of Science and Engineering for Engineers
Python, the Language of Science and Engineering for Engineers
 
Python basic
Python basicPython basic
Python basic
 
Python 101 for the .NET Developer
Python 101 for the .NET DeveloperPython 101 for the .NET Developer
Python 101 for the .NET Developer
 
Python for the Mobile and Web
Python for the Mobile and WebPython for the Mobile and Web
Python for the Mobile and Web
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Why Python?
Why Python?Why Python?
Why Python?
 
IHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to PythonIHTM Python PCEP Introduction to Python
IHTM Python PCEP Introduction to Python
 
Cmpe202 01 Research
Cmpe202 01 ResearchCmpe202 01 Research
Cmpe202 01 Research
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
Lets learn Python !
Lets learn Python !Lets learn Python !
Lets learn Python !
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
 
Introduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of PythonIntroduction to python programming, Why Python?, Applications of Python
Introduction to python programming, Why Python?, Applications of Python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python
PythonPython
Python
 
Python
PythonPython
Python
 

Destacado

Destacado (12)

Nick pp
Nick ppNick pp
Nick pp
 
Data Management
Data Management Data Management
Data Management
 
santiago soto chacon 8-3
santiago soto chacon 8-3  santiago soto chacon 8-3
santiago soto chacon 8-3
 
Javainnovation
JavainnovationJavainnovation
Javainnovation
 
seminario "El derecho a la ciudad en el contexto de Hábitat III: Perspectivas...
seminario "El derecho a la ciudad en el contexto de Hábitat III: Perspectivas...seminario "El derecho a la ciudad en el contexto de Hábitat III: Perspectivas...
seminario "El derecho a la ciudad en el contexto de Hábitat III: Perspectivas...
 
One sheet summary 260000
One sheet summary   260000One sheet summary   260000
One sheet summary 260000
 
B1 1.10 How do we Deal with Disease
B1 1.10 How do we Deal with DiseaseB1 1.10 How do we Deal with Disease
B1 1.10 How do we Deal with Disease
 
Polyurethane Market Analysis, Size, Share & Forecast By Ashutosh
Polyurethane Market Analysis, Size, Share & Forecast By Ashutosh Polyurethane Market Analysis, Size, Share & Forecast By Ashutosh
Polyurethane Market Analysis, Size, Share & Forecast By Ashutosh
 
Труды Буре Р. С."Сердце мое принадлежит детям".
Труды Буре Р. С."Сердце мое принадлежит детям". Труды Буре Р. С."Сердце мое принадлежит детям".
Труды Буре Р. С."Сердце мое принадлежит детям".
 
Труды Сластенина В.А.
Труды Сластенина В.А.Труды Сластенина В.А.
Труды Сластенина В.А.
 
Труды Пурышевой Н. С.
Труды Пурышевой Н. С. Труды Пурышевой Н. С.
Труды Пурышевой Н. С.
 
Труды Марцинковской Т. Д.
Труды Марцинковской Т. Д.Труды Марцинковской Т. Д.
Труды Марцинковской Т. Д.
 

Similar a Introduction To Python

Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
Manohar k
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
Ramanamurthy Banda
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 

Similar a Introduction To Python (20)

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
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptx
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Programming in python in detail concept .pptx
Programming in python in detail concept .pptxProgramming in python in detail concept .pptx
Programming in python in detail concept .pptx
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Why Python in required in Civil Engineering
Why Python in required in Civil EngineeringWhy Python in required in Civil Engineering
Why Python in required in Civil Engineering
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
 
Why Python is the Best Coding Language For PWA Development_.ppt
Why Python is the Best Coding Language For PWA Development_.pptWhy Python is the Best Coding Language For PWA Development_.ppt
Why Python is the Best Coding Language For PWA Development_.ppt
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
 
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
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
python unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
637b4894085c4_ppt.pptx
637b4894085c4_ppt.pptx637b4894085c4_ppt.pptx
637b4894085c4_ppt.pptx
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Último (20)

How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Introduction To Python

  • 2. Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.  First released in 1990  Designed By: Guido van Rossum  Name came from a 1970s British television show : Reference: https://www.python.org/~guido Monty Python’s Flying Circus
  • 3. Why Python ?  Easy to learn  Readable  Simplicity  Multipurpose  Errors appear on runtime. . . . . .
  • 4. A Sample Python Code Snippet……
  • 5. R Vs Python – Swap 2 Variables Code Comparison Below is screenshot of swapping 2 variables without using a third variable in R & Python
  • 6. Python Material Online Materials: https://docs.python.org/3/ Other Resources: http://www.sololearn.com/Course/Python/ Popular Python recipes http://code.activestate.com/recipes/langs/python/ “Sololearn Python“ (A Simple Android App for Beginners)
  • 7. What is Python? Multi Functional:  Simple procedural programming  Object-orientation  Functional programming Computer Programming for everybody :  Portable: Different interpreters for many platforms: CPython, Jython, IronPython, PyPy.  Open source, so anyone can contribute to its development  Code that is as understandable as plain English  Suitability for everyday tasks, allowing for short development times  Extensible: Reusable code using modules and packages  Easy to write new modules in ‘C’.
  • 8. Comparison with other languages  Python code is typically 3-5 times shorter than equivalent Java code, it is often 5-10 times shorter than equivalent C++ code!  Anecdotal evidence suggests that one Python programmer can finish in two months what two C++ programmers can't complete in a year.  Python shines as a glue language, used to combine components written in C++. So, Python can increase productivity Reference: https://www.python.org/doc/essays/comparisons/
  • 9. Points to be noted  “Python is a scripting language" False. Python has been used as a scripting language, but it is also used to develop large stand-alone applications. Python is interpreted, thus slower than running native code  True, But not always  Python can be used to `glue' together native modules.  Libraries (Numpy,Scipy etc.)are often very efficient.  Dynamic typing is unsafe.  Python is strongly typed and well behaved.  It can deal with type errors at runtime.
  • 10. Use Cases/Applications  Application Development  Web Development  Scripting  Scientific Computing Success Stories: https://www.python.org/about/success/
  • 11. Use Cases/Applications  Google – Many components of search engine were written in Python  Yahoo - maps were developed using Python  RHEL – Installer developed using Python  NASA – Uses Python as the main scripting language
  • 12. The RedMonk Programming Language Rankings: 2015
  • 13. The RedMonk Programming Language Rankings..(Cont’d)
  • 14. Python in Big Data & Data Science http://www.kdnuggets.com/2015/05/r-vs-python-data- science.html
  • 15. Python- Pros and Cons  Pro: IPython Notebook or Jupyter The IPython Notebook makes it easier to work with Python and data. You can easily share notebooks with colleagues, without having them to install anything. This drastically reduces the overhead of organizing code, output and notes files. This will allow you to spend more time doing real work.  A general purpose language Python is a general purpose language that is easy and intuitive. This gives it a relatively flat learning curve, and it increases the speed at which you can write a program. In short, you need less time to code and you have more time to play around with it! Furthermore, the Python testing framework is a built-in, low- barrier-to-entry testing framework that encourages good test coverage. This guarantees your code is reusable and dependable.
  • 16. Pros & Cons (Cont’d)…..  Pro :A multi purpose language Python brings people with different backgrounds together. As a common, easy to understand language that is known by programmers and that can easily be learnt by statisticians, you can build a single tool that integrates with every part of your workflow.  Pro/Con: Visualizations Visualizations are an important criteria when choosing data analysis software. Although Python has some nice visualization libraries, such as Seaborn, Bokeh and Pygal, Matplotlib etc.  Con: Python is a challenger Python is a challenger to R. It does not offer an alternative to the hundreds of essential R packages, Although it‟s catching up.
  • 17. Versions Python2  Python2 – Very Stable (Python-2.7) – All may not support Python3  Current Release – 3.5.1 (Released on 21-12-2015)  Some major changes and clean-ups  Not backward compatible (cannot execute 2.x code)  V3.6 - Ongoing development