SlideShare ist ein Scribd-Unternehmen logo
1 von 69
Pi Is For…
Programming
In
Raspberry
Computers Don’t
Do Anything
Without
Instructions
Programming, or
Coding, is how we
tell computers what
to do using
instructions that
the computer
understands.
What Is A Computer Interface?
Jacquard Loom Interface - 1801
Switch Computer Interface - ENIAC 1945
1950’s - 1960’s Business
No Command Line Interface
1990’s Personal
Graphical User Interface (GUI)
Command Line Computer Interface
1970’s Personal
Command Line Interface Only
(Sometimes called Shell Or Console)
Python Uses A Command Line Interface?
ARM Cortex-A53 CPU
How Does Programming Work?
Hardware Specific, Very Fast But
Very Difficult For Human
Comprehension. This Is The Language
That The Computer Speaks.
ARM Cortex-A53 CPU
How Does Programming Work?
How Does Programming Work?
ARM Cortex-A53 CPU
Hardware Specific, Very Fast And
Somewhat Comprehendible For People.
ARM Cortex-A53 CPU
How Does Programming Work?
ARM Cortex-A53 CPU
How Does Programming Work?
High Level Languages Are Considered
Cross Platform and Comprehendible.
To Maintain Speed They Compile An
Assembly Or Machine Language
Version Of The Code Specifically
For The CPU.
ARM Cortex-A53 CPU
Quality Compilers Can Generate Quicker Code
C Often Used In Graphics and Operating Systems
How Does Programming Work?
ARM Cortex-A53 CPU
Quality Compilers Can Generate Quicker Code
C Often Used In Graphics and Operating Systems
How Does Programming Work?
ARM Cortex-A53 CPU
PYTHON BASIC
Dynamic high-level general-purpose
scripting languages (such as Python
and PERL) execute programs in real
time using pre-compiled API’s or
machine code. Their advantage is
that programs can be be constructed
from pre built blocks and combined
into complex programs.
PERL
Software Intermediary
How Does Programming Work?
How Does Programming Work?
ARM Cortex-A53 CPU - Linux
PYTHON CODE
Python Virtual Machine
Bytecode
How Does Programming Work?
PYTHON CODE
ARM Cortex-A53 CPU - Linux
Python Virtual Machine
AMD Athlon™ X4 CPU - Windows
Python Virtual Machine
Intel® Core™ i7 CPU - MAC OSX
Python Virtual Machine
Hello world! In Machine Code
Why Python?
Why Python?
Hello world! In Assembly Language
Why Python?
Hello world! In BASIC, C and Python
Why Python?
● Python Is A General Purpose Language
○ Many computer devices
○ Libraries for most applications.
● Large Standard Code Library
○ Standard Library runs on Raspberry Pi or CRAY Supercomputer.
● Can Be Compiled To Machine Language
○ Cython compiles Python code To C.
● Can Call C Code
○ Python ctypes
● Clean code
○ Employs indentation
○ No {..code in here..} or <div>..or stuff in here..<div>
● Libraries, Libraries, Libraries
○ The secret power of Python
○ 67,000 libraries (Jan 1, 2016)
Getting Started On Raspberry Pi
● https://www.raspberrypi.org/documentation/usage/python/
○ RUNNING PYTHON ON A RASPBERRY PI
○ INDENTATION
○ VARIABLES
○ COMMENTS
○ LISTS
○ ITERATION and RANGE
○ CREATING/SAVING PYTHON FILES
○ EXECUTING PYTHON FILES
Python Interactive Mode
Python Shell
Command Line Interface
Python Prompt
>>>
Getting Started On Raspberry Pi
Python Interactive Mode
Getting Started On Raspberry Pi
Getting Started On Raspberry Pi
Python Interactive Mode
Getting Started On Raspberry Pi
Python Run Module
Getting Started On Raspberry Pi
Python Run Module
Getting Started On Raspberry Pi
Python Run Module
Getting Started On Raspberry Pi
Python Run Module
CODE
https://trinket.io
Programming In Python - Overview
CODE
RESULT
(CONSOLE OUTPUT)
https://trinket.io
Programming In Python - Overview
https://trinket.io/python/81bea2e14c
Python Sequence Code
https://trinket.io/python/81bea2e14c
Python Sequence Code
https://trinket.io/python/883c20b4a3
Python Functions Code
https://trinket.io/python/883c20b4a3
Python Functions Code
https://trinket.io/python/883c20b4a3
Python Functions Code
https://trinket.io/python/81bea2e14c
Python Functions Code
https://trinket.io/python/883c20b4a3
Python Functions Code
• Python runs as a minimum with always available “built-in
libraries”.
• Libraries provide the code functionality
Python Built-In Libraries
https://trinket.io/python/df57cd9d6f
Python Import Standard Libraries
https://trinket.io/python/df57cd9d6f
Python Import Standard Libraries
Python Object Oriented Code
OBJECT
Python Object Oriented Code
OBJECT
PROPERTIES
Python Object Oriented Code
Python Object Oriented Code
https://trinket.io/python/a9a6112ca5
Python Object Oriented Code
https://trinket.io/python/d4e0f1f07d
Python Object Oriented Code
Python “Clean” Code
Python “Clean” Code
Indentation
and levels
used as
separators in
code. No curly
braces or
containers.
Python “Clean” Code
Minimal use of
colons, semi-
colons, etc.
External Libraries - Wikipedia
The Beatles Wikipedia Page
External Libraries - Wikipedia
Packages Located In The Python Package Index
(PyPI)
External Libraries - Wikipedia
Use Raspberry Pi Terminal To Install External
Libraries Using PIP
External Libraries - Wikipedia
“sudo pip install wikipedia” In Terminal Installs
The Python Wikipedia Library On Your Raspberry Pi
External Libraries - Wikipedia
Estimated 67,000 Libraries (Jan 1, 2016)
Review
Review
PYTHON CODE
ARM Cortex-A53 CPU - Linux
Python Virtual Machine
AMD Athlon™ X4 CPU - Windows
Python Virtual Machine
Intel® Core™ i7 CPU - MAC OSX
Python Virtual Machine
Review
Review
Review
Review
Review
Review
Review
Review
Review
Review
Contact

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick NeshRaspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
Raspberry JAM 1 - Setup Raspberry Pi with Raspbian -Vick Nesh
 
Introduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin ControlIntroduction To Raspberry Pi with Simple GPIO pin Control
Introduction To Raspberry Pi with Simple GPIO pin Control
 
Introduction to Raspberrypi
Introduction to  RaspberrypiIntroduction to  Raspberrypi
Introduction to Raspberrypi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)DigiPinguïns: demo Raspberry Pi (Koen De Smet)
DigiPinguïns: demo Raspberry Pi (Koen De Smet)
 
Raspberry pi ppt
Raspberry pi pptRaspberry pi ppt
Raspberry pi ppt
 
My presentation raspberry pi
My presentation raspberry piMy presentation raspberry pi
My presentation raspberry pi
 
Introduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIOIntroduction to Raspberry Pi and GPIO
Introduction to Raspberry Pi and GPIO
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Getting Started with Raspberry Pi
Getting Started with Raspberry PiGetting Started with Raspberry Pi
Getting Started with Raspberry Pi
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 
IPv6: A Digital Game Changer
IPv6: A Digital Game ChangerIPv6: A Digital Game Changer
IPv6: A Digital Game Changer
 
Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014Raspberry Pi Session - 22_11_2014
Raspberry Pi Session - 22_11_2014
 
Raspberry Pi in Education (English)
Raspberry Pi in Education (English)Raspberry Pi in Education (English)
Raspberry Pi in Education (English)
 
Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.Raspberry Pi in education, resource presentation.
Raspberry Pi in education, resource presentation.
 
Interfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the WorldInterfacing the Raspberry Pi to the World
Interfacing the Raspberry Pi to the World
 
Exploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with PythonExploring the ABC's of Raspberry Pi with Python
Exploring the ABC's of Raspberry Pi with Python
 
Exploring the abc's of raspberry pi and python(day 2)
Exploring the abc's of raspberry pi and python(day 2)Exploring the abc's of raspberry pi and python(day 2)
Exploring the abc's of raspberry pi and python(day 2)
 
Python in raspberry pi
Python in raspberry piPython in raspberry pi
Python in raspberry pi
 
Beagle board
Beagle boardBeagle board
Beagle board
 

Andere mochten auch

Andere mochten auch (15)

Python on Pi - Keynote at PySS14
Python on Pi - Keynote at PySS14Python on Pi - Keynote at PySS14
Python on Pi - Keynote at PySS14
 
Sensors, actuators and the Raspberry PI using Python
Sensors, actuators and the Raspberry PI using PythonSensors, actuators and the Raspberry PI using Python
Sensors, actuators and the Raspberry PI using Python
 
EuroSciPy keynote - Python Programming in Science Education
EuroSciPy keynote - Python Programming in Science EducationEuroSciPy keynote - Python Programming in Science Education
EuroSciPy keynote - Python Programming in Science Education
 
Research plan
Research planResearch plan
Research plan
 
Research challenge year 12 4 5
Research challenge year 12  4 5Research challenge year 12  4 5
Research challenge year 12 4 5
 
Past questions g322
Past questions g322Past questions g322
Past questions g322
 
Section a g325
Section a g325Section a g325
Section a g325
 
Google Material Design
Google Material Design Google Material Design
Google Material Design
 
G325 structure
G325 structureG325 structure
G325 structure
 
Introduction to material design
Introduction to material designIntroduction to material design
Introduction to material design
 
Programming simple games with a raspberry pi and
Programming simple games with a raspberry pi andProgramming simple games with a raspberry pi and
Programming simple games with a raspberry pi and
 
ワンコインでIot入門 第二章
ワンコインでIot入門 第二章ワンコインでIot入門 第二章
ワンコインでIot入門 第二章
 
Go Material
Go MaterialGo Material
Go Material
 
SMPTE Toronto Presentation - Multi Camera High Definition TV Studio and Roger...
SMPTE Toronto Presentation - Multi Camera High Definition TV Studio and Roger...SMPTE Toronto Presentation - Multi Camera High Definition TV Studio and Roger...
SMPTE Toronto Presentation - Multi Camera High Definition TV Studio and Roger...
 
IoT: An introduction
IoT: An introductionIoT: An introduction
IoT: An introduction
 

Ähnlich wie Pi Is For Python

The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdfThe Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
ssuser8b3cdd
 

Ähnlich wie Pi Is For Python (20)

Python Introduction
Python IntroductionPython Introduction
Python Introduction
 
Reverse engineering with python
Reverse engineering with pythonReverse engineering with python
Reverse engineering with python
 
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdfThe Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
The Python Book_ The ultimate guide to coding with Python ( PDFDrive ).pdf
 
python unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
PyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_AyanPyCon_India_2017_MicroPython_Ayan
PyCon_India_2017_MicroPython_Ayan
 
CO&AL-lecture-04 about the procedures in c language (1).pptx
CO&AL-lecture-04 about the procedures in c language (1).pptxCO&AL-lecture-04 about the procedures in c language (1).pptx
CO&AL-lecture-04 about the procedures in c language (1).pptx
 
Возможности интерпретатора Python в NX-OS
Возможности интерпретатора Python в NX-OSВозможности интерпретатора Python в NX-OS
Возможности интерпретатора Python в NX-OS
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
PSPClass1.pptx
PSPClass1.pptxPSPClass1.pptx
PSPClass1.pptx
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdf
 
Introduction to Python Programming
Introduction to Python ProgrammingIntroduction to Python Programming
Introduction to Python Programming
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdf
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes
 
PyCon2022 - Building Python Extensions
PyCon2022 - Building Python ExtensionsPyCon2022 - Building Python Extensions
PyCon2022 - Building Python Extensions
 
05 python.pdf
05 python.pdf05 python.pdf
05 python.pdf
 
Raspberry pi
Raspberry piRaspberry pi
Raspberry pi
 

Mehr von Brad Fortner

Mehr von Brad Fortner (6)

Convergence Jukebox Overview Python Toronto Meetup May 2016
Convergence Jukebox Overview Python Toronto Meetup May 2016Convergence Jukebox Overview Python Toronto Meetup May 2016
Convergence Jukebox Overview Python Toronto Meetup May 2016
 
Convergence Jukebox Overview
Convergence Jukebox OverviewConvergence Jukebox Overview
Convergence Jukebox Overview
 
SMPTE Education Update: Education – Key To Member Value
 SMPTE Education Update: Education – Key To Member Value SMPTE Education Update: Education – Key To Member Value
SMPTE Education Update: Education – Key To Member Value
 
SMPTE Toronto Presentation - IPTV and Social Media On The TV Industry
SMPTE Toronto Presentation - IPTV and Social Media On The TV IndustrySMPTE Toronto Presentation - IPTV and Social Media On The TV Industry
SMPTE Toronto Presentation - IPTV and Social Media On The TV Industry
 
Interactive Content Authoring for A153 ATSC Mobile Digital Television Employi...
Interactive Content Authoring for A153 ATSC Mobile Digital Television Employi...Interactive Content Authoring for A153 ATSC Mobile Digital Television Employi...
Interactive Content Authoring for A153 ATSC Mobile Digital Television Employi...
 
SMPTE Toronto Presentation - Open-Source Software In Broadcasting: The Power ...
SMPTE Toronto Presentation - Open-Source Software In Broadcasting: The Power ...SMPTE Toronto Presentation - Open-Source Software In Broadcasting: The Power ...
SMPTE Toronto Presentation - Open-Source Software In Broadcasting: The Power ...
 

Kürzlich hochgeladen

introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
masabamasaba
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
mohitmore19
 

Kürzlich hochgeladen (20)

%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...Chinsurah Escorts ☎️8617697112  Starting From 5K to 15K High Profile Escorts ...
Chinsurah Escorts ☎️8617697112 Starting From 5K to 15K High Profile Escorts ...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdfThe Top App Development Trends Shaping the Industry in 2024-25 .pdf
The Top App Development Trends Shaping the Industry in 2024-25 .pdf
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand%in Midrand+277-882-255-28 abortion pills for sale in midrand
%in Midrand+277-882-255-28 abortion pills for sale in midrand
 
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
%in Lydenburg+277-882-255-28 abortion pills for sale in Lydenburg
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
TECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service providerTECUNIQUE: Success Stories: IT Service provider
TECUNIQUE: Success Stories: IT Service provider
 
10 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 202410 Trends Likely to Shape Enterprise Technology in 2024
10 Trends Likely to Shape Enterprise Technology in 2024
 

Pi Is For Python