SlideShare a Scribd company logo
Introduction to Python
BOGDAN SABAU
6 JUNE 2015, SOFTVISION
Agenda
◦ About me
◦ What is Python
◦ Why use Python
◦ Python 101
◦ QA
About me
What is Python
oWidely used high-level programming language
oCreated in Netherlands by Guido van Rossum at the end of the 80s
oNamed after Monthy Python
oStrong emphasizes on code readability and simplicity
oSupports multiple programming paradigms
oNOT A SNAKE!
What is Python
oWidely used high-level programming language
oCreated in Netherlands by Guido van Rossum at the end of the 80s
oNamed after Monthy Python
oStrong emphasizes on code readability and simplicity
oSupports multiple programming paradigms
oNOT A SNAKE!
Why use Python
oSimplicity
oFewer lines => less buggy code and reduce development time
o3rd party resources
oAvailable on multiple OS
oOpen source and mature
oUsed by: Google, Dropbox, Eventbrite, Quora, SlideShare, Reedit
Python 101
oTwo main versions: 2.x and 3.x
oIDE: IDLE, PyDev, PyCharm, Visual Studio
oOnline jupyter.org
oINDENTATION COUNTS!
Python 101
VARIABLES
◦ Must have an initial value
◦ We can define multiple variables at once
◦ Case sensitive
◦ Can contain letter, number or underscore
◦ Some reserved word cannot be used
Python 101
OPERATIONS
◦ Addition (+)
◦ Subtraction (-)
◦ Multiplication (*)
◦ Division (/)
◦ Floor division (//)
◦ Modulus (%)
◦ Exponent (**)
Python 101
DATA TYPES
◦ Integers
◦ 23, -4, 99934
◦ Float
◦ 0.333, -8.8, 883.009
◦ String
◦ “Hola Buenes", ‘Arturo Maran’
◦ Value of index cannot be changed!
Python 101
DATA TYPES
◦ Lists
◦ Compound data types
◦ Normally related but can have different types into them
◦ Alist = [1, 3, 4, 5]
◦ Blist = [1, "a", 3]
◦ Starts from index 0
◦ Operations: append, add, delete, index
Python 101
DATA TYPES
◦ Tuples
◦ Same structure like a list
◦ Difference is that values cannot be change
◦ Ex: Months = ("Jan", "Feb", …, "Dec")
Python 101
DATA TYPES
◦ Dictionaries
◦ Look-up tables
◦ Maps a value to a key
◦ Duplicate keys are not allowed, instead we can have duplicate values
◦ User_Ages = {"Sabu":30, "Radel":78, "Sighi":18}
◦ Keys are immutable strings, values, tuples
Python 101
CHOICES AND DECISIONS
◦ Conditional statements
◦ !=, <, <=, >, >=, ==
◦ Logical operators: and, or, not
◦ If statement
If condition_true:
do A
elseif:
do B
elseif:
do C
else
do SomethingElse
Python 101
CHOICES AND DECISIONS
◦ For loops
◦ Looping through an iterable
◦ Iterabile: everything we can loop over: collection, string, tuples
◦ We can loop through a sequence of numbers
food = ["ciorba de fasole", "ceafa", "cartofi prajiti", "clatite"]
for theFood in food:
print (food)
for x in range (5):
print (x)
Python 101
CHOICES AND DECISIONS
◦ While loop
◦ Repeatedly executes instruction inside a loop until a condition is met
◦ While conditions is true, execute things
◦ We can loop inside using break or continue
◦ Try Except
◦ Controls how the program behave when an error occurs
Python 101
FUNCTION
◦ Pre-written code that performs a certain task
◦ Calling it by typing the function name (non OOP) or by dot notation when is part of a
class (OOP)
◦ Can have parameters
◦ Can return a value
QA
Please have mercy … 

More Related Content

PDF
Python入門 : 4日間コース社内トレーニング
PDF
Introduction to python
PPTX
Python programming | Fundamentals of Python programming
PDF
Introduction to Python for new beginner
PDF
10 more-things-you-can-do-with-python
PPTX
Final presentation on python
PDF
Writing Fast Code (JP) - PyCon JP 2015
Python入門 : 4日間コース社内トレーニング
Introduction to python
Python programming | Fundamentals of Python programming
Introduction to Python for new beginner
10 more-things-you-can-do-with-python
Final presentation on python
Writing Fast Code (JP) - PyCon JP 2015

What's hot (20)

PDF
Python Developer Certification
PDF
Why learn python in 2017?
PDF
Rust + python: lessons learnt from building a toy filesystem
ODP
Learn python
PDF
The str/bytes nightmare before python2 EOL
PPTX
1901200100000 presentation short term mini project on python
PDF
Python Scripting Tutorial for Beginners | Python Tutorial | Python Training |...
PDF
Programming with Python - Adv.
PDF
Programming with Python - Basic
PDF
Introduction of python
PDF
Python on Science ? Yes, We can.
PDF
Oktavia Search Engine - pyconjp2014
PDF
Python Workshop
PDF
PyPy London Demo Evening 2013
PDF
IT talk "Python language evolution"
PPTX
PDF
Lowcode: Redoing NativeBoost Portably
PPT
Python @ PiTech - March 2009
PDF
Memory Debugging
PPTX
Performance Enhancement Tips
Python Developer Certification
Why learn python in 2017?
Rust + python: lessons learnt from building a toy filesystem
Learn python
The str/bytes nightmare before python2 EOL
1901200100000 presentation short term mini project on python
Python Scripting Tutorial for Beginners | Python Tutorial | Python Training |...
Programming with Python - Adv.
Programming with Python - Basic
Introduction of python
Python on Science ? Yes, We can.
Oktavia Search Engine - pyconjp2014
Python Workshop
PyPy London Demo Evening 2013
IT talk "Python language evolution"
Lowcode: Redoing NativeBoost Portably
Python @ PiTech - March 2009
Memory Debugging
Performance Enhancement Tips
Ad

Viewers also liked (10)

PDF
Introduction to python programming
PPTX
Seeing with Python presented at PyCon AU 2014
PDF
MartinezMarjorie-DevCon Summit Certificate of Participation
PPTX
DevCon Summit 2016
PDF
Android Trends @ DevCon Summit 2016
PPTX
Open cv with processing
PPTX
Django vs Flask
PDF
Google Bigtable Paper Presentation
ODP
Django와 flask
PDF
Annabel Lee
Introduction to python programming
Seeing with Python presented at PyCon AU 2014
MartinezMarjorie-DevCon Summit Certificate of Participation
DevCon Summit 2016
Android Trends @ DevCon Summit 2016
Open cv with processing
Django vs Flask
Google Bigtable Paper Presentation
Django와 flask
Annabel Lee
Ad

Similar to Introduction to Python (20)

PDF
ppt_pspp.pdf
PPTX
Python Introduction
PDF
Sessisgytcfgggggggggggggggggggggggggggggggg
PDF
web programming Unit VIII complete about python by Bhavsingh Maloth
PPTX
Integrating Python with SQL (12345).pptx
PDF
Python: An introduction A summer workshop
PPTX
Introduction to Python Programming Language
PPTX
IoT-Week1-Day1-Lab.pptx
PPTX
Python Programming 1.pptx
PPTX
Python Seminar PPT
PPTX
Python
PPT
Python tutorialfeb152012
PPTX
python presntation 2.pptx
PPTX
Python programming basic Presentation.pptx
PDF
python-160403194316.pdf
PDF
First Steps in Python Programming
ODP
An Intro to Python in 30 minutes
PDF
Python Programming
PPTX
Python Demo.pptx
PPTX
Python.pptx
ppt_pspp.pdf
Python Introduction
Sessisgytcfgggggggggggggggggggggggggggggggg
web programming Unit VIII complete about python by Bhavsingh Maloth
Integrating Python with SQL (12345).pptx
Python: An introduction A summer workshop
Introduction to Python Programming Language
IoT-Week1-Day1-Lab.pptx
Python Programming 1.pptx
Python Seminar PPT
Python
Python tutorialfeb152012
python presntation 2.pptx
Python programming basic Presentation.pptx
python-160403194316.pdf
First Steps in Python Programming
An Intro to Python in 30 minutes
Python Programming
Python Demo.pptx
Python.pptx

Recently uploaded (20)

PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Transform Your Business with a Software ERP System
PDF
medical staffing services at VALiNTRY
PPTX
Computer Software and OS of computer science of grade 11.pptx
PDF
Digital Strategies for Manufacturing Companies
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
history of c programming in notes for students .pptx
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
Understanding Forklifts - TECH EHS Solution
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Why Generative AI is the Future of Content, Code & Creativity?
PDF
Digital Systems & Binary Numbers (comprehensive )
How to Choose the Right IT Partner for Your Business in Malaysia
Transform Your Business with a Software ERP System
medical staffing services at VALiNTRY
Computer Software and OS of computer science of grade 11.pptx
Digital Strategies for Manufacturing Companies
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PTS Company Brochure 2025 (1).pdf.......
Navsoft: AI-Powered Business Solutions & Custom Software Development
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
history of c programming in notes for students .pptx
Design an Analysis of Algorithms I-SECS-1021-03
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Odoo Companies in India – Driving Business Transformation.pdf
Embracing Complexity in Serverless! GOTO Serverless Bengaluru
Operating system designcfffgfgggggggvggggggggg
Wondershare Filmora 15 Crack With Activation Key [2025
Understanding Forklifts - TECH EHS Solution
CHAPTER 2 - PM Management and IT Context
Why Generative AI is the Future of Content, Code & Creativity?
Digital Systems & Binary Numbers (comprehensive )

Introduction to Python

  • 1. Introduction to Python BOGDAN SABAU 6 JUNE 2015, SOFTVISION
  • 2. Agenda ◦ About me ◦ What is Python ◦ Why use Python ◦ Python 101 ◦ QA
  • 4. What is Python oWidely used high-level programming language oCreated in Netherlands by Guido van Rossum at the end of the 80s oNamed after Monthy Python oStrong emphasizes on code readability and simplicity oSupports multiple programming paradigms oNOT A SNAKE!
  • 5. What is Python oWidely used high-level programming language oCreated in Netherlands by Guido van Rossum at the end of the 80s oNamed after Monthy Python oStrong emphasizes on code readability and simplicity oSupports multiple programming paradigms oNOT A SNAKE!
  • 6. Why use Python oSimplicity oFewer lines => less buggy code and reduce development time o3rd party resources oAvailable on multiple OS oOpen source and mature oUsed by: Google, Dropbox, Eventbrite, Quora, SlideShare, Reedit
  • 7. Python 101 oTwo main versions: 2.x and 3.x oIDE: IDLE, PyDev, PyCharm, Visual Studio oOnline jupyter.org oINDENTATION COUNTS!
  • 8. Python 101 VARIABLES ◦ Must have an initial value ◦ We can define multiple variables at once ◦ Case sensitive ◦ Can contain letter, number or underscore ◦ Some reserved word cannot be used
  • 9. Python 101 OPERATIONS ◦ Addition (+) ◦ Subtraction (-) ◦ Multiplication (*) ◦ Division (/) ◦ Floor division (//) ◦ Modulus (%) ◦ Exponent (**)
  • 10. Python 101 DATA TYPES ◦ Integers ◦ 23, -4, 99934 ◦ Float ◦ 0.333, -8.8, 883.009 ◦ String ◦ “Hola Buenes", ‘Arturo Maran’ ◦ Value of index cannot be changed!
  • 11. Python 101 DATA TYPES ◦ Lists ◦ Compound data types ◦ Normally related but can have different types into them ◦ Alist = [1, 3, 4, 5] ◦ Blist = [1, "a", 3] ◦ Starts from index 0 ◦ Operations: append, add, delete, index
  • 12. Python 101 DATA TYPES ◦ Tuples ◦ Same structure like a list ◦ Difference is that values cannot be change ◦ Ex: Months = ("Jan", "Feb", …, "Dec")
  • 13. Python 101 DATA TYPES ◦ Dictionaries ◦ Look-up tables ◦ Maps a value to a key ◦ Duplicate keys are not allowed, instead we can have duplicate values ◦ User_Ages = {"Sabu":30, "Radel":78, "Sighi":18} ◦ Keys are immutable strings, values, tuples
  • 14. Python 101 CHOICES AND DECISIONS ◦ Conditional statements ◦ !=, <, <=, >, >=, == ◦ Logical operators: and, or, not ◦ If statement If condition_true: do A elseif: do B elseif: do C else do SomethingElse
  • 15. Python 101 CHOICES AND DECISIONS ◦ For loops ◦ Looping through an iterable ◦ Iterabile: everything we can loop over: collection, string, tuples ◦ We can loop through a sequence of numbers food = ["ciorba de fasole", "ceafa", "cartofi prajiti", "clatite"] for theFood in food: print (food) for x in range (5): print (x)
  • 16. Python 101 CHOICES AND DECISIONS ◦ While loop ◦ Repeatedly executes instruction inside a loop until a condition is met ◦ While conditions is true, execute things ◦ We can loop inside using break or continue ◦ Try Except ◦ Controls how the program behave when an error occurs
  • 17. Python 101 FUNCTION ◦ Pre-written code that performs a certain task ◦ Calling it by typing the function name (non OOP) or by dot notation when is part of a class (OOP) ◦ Can have parameters ◦ Can return a value