SlideShare a Scribd company logo
Introduction to
Python
Delft, 19 Aug 2019
What is Python?
❏ Multi-purpose (Web, GUI, Scripting, etc.)
❏ Object Oriented
❏ Interpreted
❏ Both strongly typed and dynamically typed
❏ Focus on readability and productivity
Features
❏ Batteries Included
❏ Everything is an Object
❏ Interactive Shell
❏ Strong Introspection
❏ Cross Platform
❏ CPython, Jython, IronPython, PyPy
Releases
❏ Created in 1989 by Guido Van Rossum
❏ Python 1.0 released in 1994
❏ Python 2.0 released in 2000
❏ Python 3.0 released in 2008
❏ Python 2.7 is the recommended version
❏ 3.0 adoption will take a few years
Python popularity among other
languages
TIOBE, Jan 2019 PyPL, Jan 2019
Python among other programming
languages (benchmark)
❏ https://en.wikipedia.org/wiki/List_of_programm
ing_languages_by_type
❏ https://attractivechaos.github.io/plb/
❏ http://www.bioinformatics.org/benchmark/resu
lts.html
❏ https://github.com/kostya/benchmarks
❏ End-users just don’t care: 0.001 vs. 0.01
seconds no matter; horizontal scalability used
❏ More productive: more concise and expressive language and
requires less time, effort, and lines of code to perform the same operations
❏ Execution Speed does not matter as much as
Business Speed
❏ Rich set of standard libraries and frameworks
❏ Large community (packages, Q/A, discussions)
Despite being slow, why is Python still
popular?
How readable is Python?
How readable is Python?
How readable is Python?
How readable is Python?
How readable is Python?
When use and not use Python?
Use
❏ Execution speed does
not matter
❏ Everyone is new to
programming
❏ Readability is more
important
Not use
❏ Speed-intensive
applications including
games that require
high-performance
❏ OS or system-level
applications (e.g.,
memory manipulation)
How to run a Python program
❏ Using embedded interpreter in IDE/Notebook
❏ Using stand-alone interpreter
❏ Using the interactive shell
How to write a Python program
❏ IDE: Eclipse + PyDev, Visual Studio, PyCharm,
Spyder, Thonny
❏ Code editor: Sublime Text, Atom, GNU Emacs,
Vi / Vim / Nano, Visual Studio Code, ...
❏ Notebook: Jupyter, Zeppelin
How to write a Python program
❏ Use IDE: write a complex program,
collaboration in a team, many
dependencies/libraries/binaries
❏ Use code editor: write a simple program
❏ Notebook: interactive, reporting-like
deliverable
Most popular Python IDE/Code Editor
https://insights.stackoverflow.com/survey/201
9#development-environments-and-tools
Python package installer (pip)
❏ pip is the recommended tool to install python package from
python package public repos (such as public PyPI - and its
mirrors) and private repos
❏ pip can install from either Source Distributions (sdist) or
wheels, but if both are present on PyPI, pip will prefer a
compatible wheel (pre-built).
Python public packages (category) [1/2]
❏ Admin Panels
❏ Algorithms and Design Patterns
❏ Audio
❏ Authentication
❏ Build Tools
❏ Built-in Classes Enhancement
❏ Caching
❏ ChatOps Tools
❏ CMS
❏ Code Analysis
❏ Command-line Interface Development
❏ Command-line Tools
❏ Compatibility
❏ Computer Vision
❏ Concurrency and Parallelism
❏ Configuration
❏ Cryptography
❏ Data Analysis
❏ Data Validation
❏ Data Visualization
❏ Database
❏ Database Drivers
❏ Date and Time
❏ Debugging Tools
❏ Deep Learning
❏ DevOps Tools
❏ Distributed Computing
❏ Distribution
❏ Documentation
❏ Downloader
❏ E-commerce
❏ Editor Plugins and IDEs
❏ Email
❏ Environment Management
❏ Files
❏ Foreign Function Interface
❏ Forms
❏ Functional Programming
❏ Game Development
❏ Geolocation
❏ GUI Development
❏ Hardware
❏ HTML Manipulation
❏ HTTP Clients
❏ Image Processing
❏ Implementations
❏ Interactive Interpreter
❏ Internationalization
❏ Job Scheduler
❏ Logging
❏ Machine Learning
Total: 63595 packages
Python public packages (category) [2/2]
❏ Miscellaneous
❏ Natural Language Processing
❏ Network Virtualization
❏ Networking
❏ News Feed
❏ ORM
❏ Package Management
❏ Package Repositories
❏ Permissions
❏ Processes
❏ Queue
❏ Recommender Systems
❏ RESTful API
❏ Robotics
❏ RPC Servers
❏ Science
❏ Search
❏ Serialization
❏ Serverless Frameworks
❏ Specific Formats Processing
❏ Static Site Generator
❏ Tagging
❏ Template Engine
❏ Testing
❏ Text Processing
❏ Third-party APIs
❏ URL Manipulation
❏ Video
❏ Web Asset Management
❏ Web Content Extracting
❏ Web Crawling
❏ Web Frameworks
❏ WebSocket
❏ WSGI Servers
Total: 63595 packages
https://github.com/vinta/awesome-python
Python public package popularity
https://stackoverflow.blog/2017/09/14/python-
growing-quickly/
Python public package popularity
Python modularity
Anaconda
(app+
libraries+
binaries)
*Miniconda is the light
version of Anaconda (less
packages)
Python modularity: conda vs pip
pip installs only Python packages, but conda installs
also the system binaries needed by the Python
packages.
Very important for a non-sudo user to leverage the
server capability
Python modularity in practice
Basic Python Tutorial
❏ We’re using Anaconda
❏ Clone:
https://gitlab.erc.monash.edu.au/andrease/Python4Maths

More Related Content

What's hot (20)

PPTX
Introduction to python
Ayshwarya Baburam
 
PDF
Introduction To Python | Edureka
Edureka!
 
PPTX
Python
Aashish Jain
 
PPTX
Python basics
Jyoti shukla
 
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
PPTX
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
PDF
Intro to Python for Non-Programmers
Ahmad Alhour
 
PPTX
Introduction to python
AnirudhaGaikwad4
 
PPT
Introduction to Python
Nowell Strite
 
PDF
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
PPTX
Introduction to-python
Aakashdata
 
PPT
Introduction to Python
amiable_indian
 
PDF
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
PPTX
Introduction to python programming, Why Python?, Applications of Python
Pro Guide
 
PPTX
Python
SHIVAM VERMA
 
PDF
Zero to Hero - Introduction to Python3
Chariza Pladin
 
PPTX
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
PDF
Introduction to python
eShikshak
 
PDF
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 
Introduction to python
Ayshwarya Baburam
 
Introduction To Python | Edureka
Edureka!
 
Python
Aashish Jain
 
Python basics
Jyoti shukla
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Intro to Python for Non-Programmers
Ahmad Alhour
 
Introduction to python
AnirudhaGaikwad4
 
Introduction to Python
Nowell Strite
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Edureka!
 
Introduction to-python
Aakashdata
 
Introduction to Python
amiable_indian
 
Python Tutorial | Python Tutorial for Beginners | Python Training | Edureka
Edureka!
 
Introduction to python programming, Why Python?, Applications of Python
Pro Guide
 
Python
SHIVAM VERMA
 
Zero to Hero - Introduction to Python3
Chariza Pladin
 
Python | What is Python | History of Python | Python Tutorial
QA TrainingHub
 
Introduction to python
eShikshak
 
Let’s Learn Python An introduction to Python
Jaganadh Gopinadhan
 

Similar to Introduction to python (20)

PPTX
Introduction to Python Programming in Civil Engineering
Rushikesh Kolhe
 
PDF
Python. Why to learn?
Oleh Korkh
 
PDF
Mastering the Interview: 50 Common Interview Questions Demystified
MalcolmDupri
 
PDF
Python, the Language of Science and Engineering for Engineers
Boey Pak Cheong
 
PPTX
Python-History.pptx
Aaaakash1
 
PPTX
Introduction of python programming
Nitin Kumar Kashyap
 
PPTX
Python Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Devloper
 
PPTX
Python Basics for python understanding.pptx
ShubhamNain11
 
PDF
Introduction-To-Python- a guide to master
ImadM4
 
PDF
Python: The Versatile Programming Language - Introduction
Jainul Musani
 
PPTX
UNIT 1 PYTHON introduction and basic level
vasankarponnapalli2
 
PPTX
Python a Versatile Programming Language - Introduction
Jainul Musani
 
PPT
Python_basics_tuples_sets_lists_control_loops.ppt
VGaneshKarthikeyan
 
PDF
Why learn python in 2017?
Karolis Ramanauskas
 
PDF
Is Python the Future of Programming
Inexture Solutions
 
PPTX
Future of Python Certified Professionals in Data Science and Artificial Intel...
M M Nair
 
PDF
session5-Getting stated with Python.pdf
AyushDutta32
 
PPTX
Best Python IDE in AI and Data Analytics
diptinama1986
 
PPTX
First of all, what is Python? According t
bhatamith15
 
PPTX
What is python
faizrashid1995
 
Introduction to Python Programming in Civil Engineering
Rushikesh Kolhe
 
Python. Why to learn?
Oleh Korkh
 
Mastering the Interview: 50 Common Interview Questions Demystified
MalcolmDupri
 
Python, the Language of Science and Engineering for Engineers
Boey Pak Cheong
 
Python-History.pptx
Aaaakash1
 
Introduction of python programming
Nitin Kumar Kashyap
 
Python Mastery: A Comprehensive Guide to Setting Up Your Development Environment
Python Devloper
 
Python Basics for python understanding.pptx
ShubhamNain11
 
Introduction-To-Python- a guide to master
ImadM4
 
Python: The Versatile Programming Language - Introduction
Jainul Musani
 
UNIT 1 PYTHON introduction and basic level
vasankarponnapalli2
 
Python a Versatile Programming Language - Introduction
Jainul Musani
 
Python_basics_tuples_sets_lists_control_loops.ppt
VGaneshKarthikeyan
 
Why learn python in 2017?
Karolis Ramanauskas
 
Is Python the Future of Programming
Inexture Solutions
 
Future of Python Certified Professionals in Data Science and Artificial Intel...
M M Nair
 
session5-Getting stated with Python.pdf
AyushDutta32
 
Best Python IDE in AI and Data Analytics
diptinama1986
 
First of all, what is Python? According t
bhatamith15
 
What is python
faizrashid1995
 
Ad

Recently uploaded (20)

PDF
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
PPTX
big data eco system fundamentals of data science
arivukarasi
 
PDF
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
PDF
1750162332_Snapshot-of-Indias-oil-Gas-data-May-2025.pdf
sandeep718278
 
PDF
InformaticsPractices-MS - Google Docs.pdf
seshuashwin0829
 
PPTX
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
PDF
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
PPTX
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
PPTX
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
PPTX
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
PPT
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
PPTX
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
PPTX
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
PPTX
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
PPTX
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
PPTX
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
PPTX
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
PDF
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
PPTX
Feb 2021 Ransomware Recovery presentation.pptx
enginsayin1
 
PDF
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
The European Business Wallet: Why It Matters and How It Powers the EUDI Ecosy...
Lal Chandran
 
big data eco system fundamentals of data science
arivukarasi
 
apidays Singapore 2025 - How APIs can make - or break - trust in your AI by S...
apidays
 
1750162332_Snapshot-of-Indias-oil-Gas-data-May-2025.pdf
sandeep718278
 
InformaticsPractices-MS - Google Docs.pdf
seshuashwin0829
 
apidays Helsinki & North 2025 - APIs at Scale: Designing for Alignment, Trust...
apidays
 
apidays Singapore 2025 - From API Intelligence to API Governance by Harsha Ch...
apidays
 
apidays Singapore 2025 - Generative AI Landscape Building a Modern Data Strat...
apidays
 
Listify-Intelligent-Voice-to-Catalog-Agent.pptx
nareshkottees
 
SHREYAS25 INTERN-I,II,III PPT (1).pptx pre
swapnilherage
 
tuberculosiship-2106031cyyfuftufufufivifviviv
AkshaiRam
 
thid ppt defines the ich guridlens and gives the information about the ICH gu...
shaistabegum14
 
apidays Singapore 2025 - Designing for Change, Julie Schiller (Google)
apidays
 
apidays Helsinki & North 2025 - From Chaos to Clarity: Designing (AI-Ready) A...
apidays
 
apidays Singapore 2025 - From Data to Insights: Building AI-Powered Data APIs...
apidays
 
apidays Helsinki & North 2025 - API access control strategies beyond JWT bear...
apidays
 
SlideEgg_501298-Agentic AI.pptx agentic ai
530BYManoj
 
Business implication of Artificial Intelligence.pdf
VishalChugh12
 
Feb 2021 Ransomware Recovery presentation.pptx
enginsayin1
 
A GraphRAG approach for Energy Efficiency Q&A
Marco Brambilla
 
Ad

Introduction to python

  • 2. What is Python? ❏ Multi-purpose (Web, GUI, Scripting, etc.) ❏ Object Oriented ❏ Interpreted ❏ Both strongly typed and dynamically typed ❏ Focus on readability and productivity
  • 3. Features ❏ Batteries Included ❏ Everything is an Object ❏ Interactive Shell ❏ Strong Introspection ❏ Cross Platform ❏ CPython, Jython, IronPython, PyPy
  • 4. Releases ❏ Created in 1989 by Guido Van Rossum ❏ Python 1.0 released in 1994 ❏ Python 2.0 released in 2000 ❏ Python 3.0 released in 2008 ❏ Python 2.7 is the recommended version ❏ 3.0 adoption will take a few years
  • 5. Python popularity among other languages TIOBE, Jan 2019 PyPL, Jan 2019
  • 6. Python among other programming languages (benchmark) ❏ https://en.wikipedia.org/wiki/List_of_programm ing_languages_by_type ❏ https://attractivechaos.github.io/plb/ ❏ http://www.bioinformatics.org/benchmark/resu lts.html ❏ https://github.com/kostya/benchmarks
  • 7. ❏ End-users just don’t care: 0.001 vs. 0.01 seconds no matter; horizontal scalability used ❏ More productive: more concise and expressive language and requires less time, effort, and lines of code to perform the same operations ❏ Execution Speed does not matter as much as Business Speed ❏ Rich set of standard libraries and frameworks ❏ Large community (packages, Q/A, discussions) Despite being slow, why is Python still popular?
  • 8. How readable is Python?
  • 9. How readable is Python?
  • 10. How readable is Python?
  • 11. How readable is Python?
  • 12. How readable is Python?
  • 13. When use and not use Python? Use ❏ Execution speed does not matter ❏ Everyone is new to programming ❏ Readability is more important Not use ❏ Speed-intensive applications including games that require high-performance ❏ OS or system-level applications (e.g., memory manipulation)
  • 14. How to run a Python program ❏ Using embedded interpreter in IDE/Notebook ❏ Using stand-alone interpreter ❏ Using the interactive shell
  • 15. How to write a Python program ❏ IDE: Eclipse + PyDev, Visual Studio, PyCharm, Spyder, Thonny ❏ Code editor: Sublime Text, Atom, GNU Emacs, Vi / Vim / Nano, Visual Studio Code, ... ❏ Notebook: Jupyter, Zeppelin
  • 16. How to write a Python program ❏ Use IDE: write a complex program, collaboration in a team, many dependencies/libraries/binaries ❏ Use code editor: write a simple program ❏ Notebook: interactive, reporting-like deliverable
  • 17. Most popular Python IDE/Code Editor https://insights.stackoverflow.com/survey/201 9#development-environments-and-tools
  • 18. Python package installer (pip) ❏ pip is the recommended tool to install python package from python package public repos (such as public PyPI - and its mirrors) and private repos ❏ pip can install from either Source Distributions (sdist) or wheels, but if both are present on PyPI, pip will prefer a compatible wheel (pre-built).
  • 19. Python public packages (category) [1/2] ❏ Admin Panels ❏ Algorithms and Design Patterns ❏ Audio ❏ Authentication ❏ Build Tools ❏ Built-in Classes Enhancement ❏ Caching ❏ ChatOps Tools ❏ CMS ❏ Code Analysis ❏ Command-line Interface Development ❏ Command-line Tools ❏ Compatibility ❏ Computer Vision ❏ Concurrency and Parallelism ❏ Configuration ❏ Cryptography ❏ Data Analysis ❏ Data Validation ❏ Data Visualization ❏ Database ❏ Database Drivers ❏ Date and Time ❏ Debugging Tools ❏ Deep Learning ❏ DevOps Tools ❏ Distributed Computing ❏ Distribution ❏ Documentation ❏ Downloader ❏ E-commerce ❏ Editor Plugins and IDEs ❏ Email ❏ Environment Management ❏ Files ❏ Foreign Function Interface ❏ Forms ❏ Functional Programming ❏ Game Development ❏ Geolocation ❏ GUI Development ❏ Hardware ❏ HTML Manipulation ❏ HTTP Clients ❏ Image Processing ❏ Implementations ❏ Interactive Interpreter ❏ Internationalization ❏ Job Scheduler ❏ Logging ❏ Machine Learning Total: 63595 packages
  • 20. Python public packages (category) [2/2] ❏ Miscellaneous ❏ Natural Language Processing ❏ Network Virtualization ❏ Networking ❏ News Feed ❏ ORM ❏ Package Management ❏ Package Repositories ❏ Permissions ❏ Processes ❏ Queue ❏ Recommender Systems ❏ RESTful API ❏ Robotics ❏ RPC Servers ❏ Science ❏ Search ❏ Serialization ❏ Serverless Frameworks ❏ Specific Formats Processing ❏ Static Site Generator ❏ Tagging ❏ Template Engine ❏ Testing ❏ Text Processing ❏ Third-party APIs ❏ URL Manipulation ❏ Video ❏ Web Asset Management ❏ Web Content Extracting ❏ Web Crawling ❏ Web Frameworks ❏ WebSocket ❏ WSGI Servers Total: 63595 packages https://github.com/vinta/awesome-python
  • 21. Python public package popularity https://stackoverflow.blog/2017/09/14/python- growing-quickly/
  • 22. Python public package popularity
  • 23. Python modularity Anaconda (app+ libraries+ binaries) *Miniconda is the light version of Anaconda (less packages)
  • 24. Python modularity: conda vs pip pip installs only Python packages, but conda installs also the system binaries needed by the Python packages. Very important for a non-sudo user to leverage the server capability
  • 26. Basic Python Tutorial ❏ We’re using Anaconda ❏ Clone: https://gitlab.erc.monash.edu.au/andrease/Python4Maths