SlideShare ist ein Scribd-Unternehmen logo
1 von 16
PYTHON
LEARNING TO PROGRAM
WHY LEARN TO PROGRAM?

• An important skill in making things for online media:
 problem solving

• Process of learning to program: Practice and
 improve your problem-solving skills

• Thinking in a structured way

• Learning how to find answers by a combination of
 online searching and trial-and-error
WHY PYTHON?


Python is one of
the most-used
programming
languages
today.


                   Source: https://github.com/mjwillson/ProgLangVisualise
WHY NOT JAVASCRIPT?

• JavaScript is a must for Web development today.

• If you already knew how to program, you could jump
 straight into JavaScript and not learn Python.

• As a first programming language, Python is easier to
 learn than JavaScript.

• The techniques you learn as you learn Python will help
 you understand JavaScript more quickly.
 http://www.quora.com/Is-it-better-to-learn-Python-or-
 JavaScript-as-a-first-language
USING PYTHON

 • There are two ways to use Python:
    • Interactive mode

    • Script mode

 • In interactive mode, you type Python programs and
   the Python interpreter displays the result
   immediately …




Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 2–3
PYTHON
INTERACTIVE MODE
USING PYTHON

 • There are two ways to use Python:
    • Interactive mode

    • Script mode

 • In script mode, you write code in a text file, save it,
   and then use the interpreter to execute (or run) the
   contents of the file (which is called a script)

 • Python scripts have filenames that end with .py


Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 2–3
PYTHON
THIS IS A SCRIPT, SHOWN IN A TEXT EDITOR
When you run a Python script (left) in the Python
interpreter, the output (but not the stored script) is
displayed onscreen (right).
WHAT A PROGRAM DOES

 • Input: Get data from the keyboard, a file, or some other
   device
 • Output: Display data on the screen, or send data to a file or
   other device
 • Math: Perform basic mathematical operations like addition
   and multiplication
 • Conditional execution: Check for certain conditions and
   execute the appropriate code
 • Repetition: Perform some action repeatedly, usually with some
   variation

Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), page 3
WHAT A PROGRAM DOES (2)

• Input: (1) run a script; (2) raw_input

• Output: (1) print; (2) create and write to text files

• Math: +, –, /, *, %, >, <, >=, <=, ==

• Conditional execution: if, elif, else

• Repetition: for, while

You will learn how to do each of these, which is pretty much
all there is to programming. (I’m lying a little bit.)
―Every program you’ve ever used, no
matter how complicated, is made up of
instructions that look pretty much like
these. So you can think of programming as
the process of breaking a large, complex
task into smaller and smaller subtasks until
the subtasks are simple enough to be
performed with one of these basic
instructions.‖


Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), page 4
DEBUGGING

 Errors are bugs. Finding and fixing them is debugging.

 • Syntax errors: Structure and rules, such as:
   ―Parentheses come in pairs‖

 • Runtime errors: Appear while the program is running
   (these are called exceptions)

 • Semantic errors: Your script runs but does not do
   what you wanted it to do

Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 4–5
In the practice of programming—of writing
programs—a lot of the work is in the
debugging.

Each error becomes a puzzle to be solved.

―Why doesn’t it work the way I want it to
work?‖

The process of learning to program is a
process of problem-solving.
RESOURCES

• Think Python, by Allen B. Downey
 http://www.greenteapress.com/thinkpython/

• Learn Python the Hard Way, by Zed A. Shaw
 http://learnpythonthehardway.org/

• Codecademy: Python
 http://www.codecademy.com/tracks/python
PYTHON
          LEARNING TO PROGRAM



Presentation by Mindy McAdams, University of Florida
                      [ 2012 ]

Weitere ähnliche Inhalte

Was ist angesagt?

Parallel programming using python
Parallel programming using python Parallel programming using python
Parallel programming using python Samah Gad
 
Create a Bot with Delphi and Telegram - ITDevCon 2016
Create a Bot with Delphi and Telegram - ITDevCon 2016Create a Bot with Delphi and Telegram - ITDevCon 2016
Create a Bot with Delphi and Telegram - ITDevCon 2016Marco Breveglieri
 
Python presentation
Python presentationPython presentation
Python presentationgaganapponix
 
Thinking of Documentation as Code [YUIConf 2013]
Thinking of Documentation as Code [YUIConf 2013]Thinking of Documentation as Code [YUIConf 2013]
Thinking of Documentation as Code [YUIConf 2013]evangoer
 
A sip of elixir
A sip of elixirA sip of elixir
A sip of elixirUttam Kini
 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayCodecademy Ren
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayCodecademy Ren
 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayCodecademy Ren
 
How to start developing iOS apps
How to start developing iOS appsHow to start developing iOS apps
How to start developing iOS appsAndrew Kozlik
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python courseEran Shlomo
 
Pharo: A Reflective System
Pharo: A Reflective SystemPharo: A Reflective System
Pharo: A Reflective SystemMarcus Denker
 
EMPEX LA 2018 - Inclusion Starts with Docs
EMPEX LA 2018 - Inclusion Starts with DocsEMPEX LA 2018 - Inclusion Starts with Docs
EMPEX LA 2018 - Inclusion Starts with DocsPete Gamache
 
Do you know your mock? - Madras JUG 20171028
Do you know your mock? - Madras JUG 20171028Do you know your mock? - Madras JUG 20171028
Do you know your mock? - Madras JUG 20171028Henri Tremblay
 
Course Overview
Course OverviewCourse Overview
Course Overviewmarcacohen
 

Was ist angesagt? (18)

Go fundamentals
Go fundamentalsGo fundamentals
Go fundamentals
 
Parallel programming using python
Parallel programming using python Parallel programming using python
Parallel programming using python
 
Create a Bot with Delphi and Telegram - ITDevCon 2016
Create a Bot with Delphi and Telegram - ITDevCon 2016Create a Bot with Delphi and Telegram - ITDevCon 2016
Create a Bot with Delphi and Telegram - ITDevCon 2016
 
Python presentation
Python presentationPython presentation
Python presentation
 
Thinking of Documentation as Code [YUIConf 2013]
Thinking of Documentation as Code [YUIConf 2013]Thinking of Documentation as Code [YUIConf 2013]
Thinking of Documentation as Code [YUIConf 2013]
 
A sip of elixir
A sip of elixirA sip of elixir
A sip of elixir
 
Lesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ayLesson 304 05 jan14-1500-ay
Lesson 304 05 jan14-1500-ay
 
Lesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ayLesson 302 05 jan14-1500-ay
Lesson 302 05 jan14-1500-ay
 
Lesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ayLesson 301 26 nov13-1500-ay
Lesson 301 26 nov13-1500-ay
 
How to start developing iOS apps
How to start developing iOS appsHow to start developing iOS apps
How to start developing iOS apps
 
Code in python
Code in pythonCode in python
Code in python
 
PyCourse - Self driving python course
PyCourse - Self driving python coursePyCourse - Self driving python course
PyCourse - Self driving python course
 
Pharo: A Reflective System
Pharo: A Reflective SystemPharo: A Reflective System
Pharo: A Reflective System
 
EMPEX LA 2018 - Inclusion Starts with Docs
EMPEX LA 2018 - Inclusion Starts with DocsEMPEX LA 2018 - Inclusion Starts with Docs
EMPEX LA 2018 - Inclusion Starts with Docs
 
Paris ML meetup
Paris ML meetupParis ML meetup
Paris ML meetup
 
Do you know your mock? - Madras JUG 20171028
Do you know your mock? - Madras JUG 20171028Do you know your mock? - Madras JUG 20171028
Do you know your mock? - Madras JUG 20171028
 
Whats next in templating
Whats next in templatingWhats next in templating
Whats next in templating
 
Course Overview
Course OverviewCourse Overview
Course Overview
 

Andere mochten auch

Estratègia digital i estratègia comercial
Estratègia digital i estratègia comercialEstratègia digital i estratègia comercial
Estratègia digital i estratègia comercialBernadette Farriol
 
U.S. j-schools and digital skills
U.S. j-schools and digital skills U.S. j-schools and digital skills
U.S. j-schools and digital skills Mindy McAdams
 
A Journalist's Guide to the Digital Age
A Journalist's Guide to the Digital AgeA Journalist's Guide to the Digital Age
A Journalist's Guide to the Digital AgeMark Briggs
 
Reporting with Social Tools
Reporting with Social ToolsReporting with Social Tools
Reporting with Social ToolsSteve Buttry
 

Andere mochten auch (6)

Estratègia digital i estratègia comercial
Estratègia digital i estratègia comercialEstratègia digital i estratègia comercial
Estratègia digital i estratègia comercial
 
U.S. j-schools and digital skills
U.S. j-schools and digital skills U.S. j-schools and digital skills
U.S. j-schools and digital skills
 
Crowdsourcing
CrowdsourcingCrowdsourcing
Crowdsourcing
 
A Journalist's Guide to the Digital Age
A Journalist's Guide to the Digital AgeA Journalist's Guide to the Digital Age
A Journalist's Guide to the Digital Age
 
Enginyers agrònoms i Xarxa
Enginyers agrònoms i XarxaEnginyers agrònoms i Xarxa
Enginyers agrònoms i Xarxa
 
Reporting with Social Tools
Reporting with Social ToolsReporting with Social Tools
Reporting with Social Tools
 

Ähnlich wie Learning Python

An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()Blue Elephant Consulting
 
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfLearn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfNemoPalleschi
 
Py4 inf 01-intro
Py4 inf 01-introPy4 inf 01-intro
Py4 inf 01-introIshaq Ali
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptxHaythamBarakeh1
 
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningArthur Emanuel
 
Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptxBharathYusha1
 
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development SamWas1
 
Python programming
Python programmingPython programming
Python programmingMegha V
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming BasicsDhana malar
 
FEC2017-Introduction-to-programming
FEC2017-Introduction-to-programmingFEC2017-Introduction-to-programming
FEC2017-Introduction-to-programmingHenrikki Tenkanen
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptxadityakumawat625
 
Natural language identification
Natural language identificationNatural language identification
Natural language identificationShaktiTaneja
 
Beginning python programming
Beginning python programmingBeginning python programming
Beginning python programmingkanteshraj
 
python classes in thane
python classes in thanepython classes in thane
python classes in thanefaizrashid1995
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfVaibhavKumarSinghkal
 
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4Brian Pichman
 

Ähnlich wie Learning Python (20)

An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
 
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdfLearn to Code with MIT App Inventor ( PDFDrive ).pdf
Learn to Code with MIT App Inventor ( PDFDrive ).pdf
 
Py4 inf 01-intro
Py4 inf 01-introPy4 inf 01-intro
Py4 inf 01-intro
 
Introduction to Coding
Introduction to CodingIntroduction to Coding
Introduction to Coding
 
Python_Introduction&DataType.pptx
Python_Introduction&DataType.pptxPython_Introduction&DataType.pptx
Python_Introduction&DataType.pptx
 
py4inf-01-intro.ppt
py4inf-01-intro.pptpy4inf-01-intro.ppt
py4inf-01-intro.ppt
 
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine LearningApresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
Apresentação - Minicurso de Introdução a Python, Data Science e Machine Learning
 
Introduction to Python Programming language.pptx
Introduction to Python Programming language.pptxIntroduction to Python Programming language.pptx
Introduction to Python Programming language.pptx
 
Python as Web Development
Python as Web Development Python as Web Development
Python as Web Development
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Python programming
Python programmingPython programming
Python programming
 
Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
FEC2017-Introduction-to-programming
FEC2017-Introduction-to-programmingFEC2017-Introduction-to-programming
FEC2017-Introduction-to-programming
 
Python3handson
Python3handsonPython3handson
Python3handson
 
python intro and installation.pptx
python intro and installation.pptxpython intro and installation.pptx
python intro and installation.pptx
 
Natural language identification
Natural language identificationNatural language identification
Natural language identification
 
Beginning python programming
Beginning python programmingBeginning python programming
Beginning python programming
 
python classes in thane
python classes in thanepython classes in thane
python classes in thane
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4Developing a Coding Program for Users  - SWFLN Makerpalooza - Session 4
Developing a Coding Program for Users - SWFLN Makerpalooza - Session 4
 

Mehr von Mindy McAdams

Multimedia Journalism Innovations in the Classroom
Multimedia Journalism Innovations in the ClassroomMultimedia Journalism Innovations in the Classroom
Multimedia Journalism Innovations in the ClassroomMindy McAdams
 
Summary of journalism faculty curriculum workshop
Summary of journalism faculty curriculum workshopSummary of journalism faculty curriculum workshop
Summary of journalism faculty curriculum workshopMindy McAdams
 
New skill sets for journalism
New skill sets for journalismNew skill sets for journalism
New skill sets for journalismMindy McAdams
 
Journalism blogs: An introduction
Journalism blogs: An introduction Journalism blogs: An introduction
Journalism blogs: An introduction Mindy McAdams
 
Why Your Newsroom Should Be Using WordPress - ONA13
Why Your Newsroom Should Be Using WordPress - ONA13Why Your Newsroom Should Be Using WordPress - ONA13
Why Your Newsroom Should Be Using WordPress - ONA13Mindy McAdams
 
Journalism's Future: Journalism, Not Newspapers
Journalism's Future: Journalism, Not NewspapersJournalism's Future: Journalism, Not Newspapers
Journalism's Future: Journalism, Not NewspapersMindy McAdams
 
Introduction to HTML5 Canvas
Introduction to HTML5 CanvasIntroduction to HTML5 Canvas
Introduction to HTML5 CanvasMindy McAdams
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOMMindy McAdams
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design Mindy McAdams
 
Design Concepts and Web Design
Design Concepts and Web DesignDesign Concepts and Web Design
Design Concepts and Web DesignMindy McAdams
 
Learning Python - Week 4
Learning Python - Week 4 Learning Python - Week 4
Learning Python - Week 4 Mindy McAdams
 
Learning Python - Week 2
Learning Python - Week 2Learning Python - Week 2
Learning Python - Week 2Mindy McAdams
 
Learning Python - Week 1
Learning Python - Week 1Learning Python - Week 1
Learning Python - Week 1Mindy McAdams
 
Freedom of Speech - Louis Brandeis
Freedom of Speech - Louis BrandeisFreedom of Speech - Louis Brandeis
Freedom of Speech - Louis BrandeisMindy McAdams
 
Networked Information Economy / Benkler
Networked Information Economy / BenklerNetworked Information Economy / Benkler
Networked Information Economy / BenklerMindy McAdams
 
Convergence Culture / Jenkins
Convergence Culture / JenkinsConvergence Culture / Jenkins
Convergence Culture / JenkinsMindy McAdams
 
How to Share Your Digital Stories
How to Share Your Digital StoriesHow to Share Your Digital Stories
How to Share Your Digital StoriesMindy McAdams
 

Mehr von Mindy McAdams (20)

Just Enough Code
Just Enough CodeJust Enough Code
Just Enough Code
 
Multimedia Journalism Innovations in the Classroom
Multimedia Journalism Innovations in the ClassroomMultimedia Journalism Innovations in the Classroom
Multimedia Journalism Innovations in the Classroom
 
Summary of journalism faculty curriculum workshop
Summary of journalism faculty curriculum workshopSummary of journalism faculty curriculum workshop
Summary of journalism faculty curriculum workshop
 
New skill sets for journalism
New skill sets for journalismNew skill sets for journalism
New skill sets for journalism
 
Journalism blogs: An introduction
Journalism blogs: An introduction Journalism blogs: An introduction
Journalism blogs: An introduction
 
Why Your Newsroom Should Be Using WordPress - ONA13
Why Your Newsroom Should Be Using WordPress - ONA13Why Your Newsroom Should Be Using WordPress - ONA13
Why Your Newsroom Should Be Using WordPress - ONA13
 
Journalism's Future: Journalism, Not Newspapers
Journalism's Future: Journalism, Not NewspapersJournalism's Future: Journalism, Not Newspapers
Journalism's Future: Journalism, Not Newspapers
 
Introduction to HTML5 Canvas
Introduction to HTML5 CanvasIntroduction to HTML5 Canvas
Introduction to HTML5 Canvas
 
Beginning jQuery
Beginning jQueryBeginning jQuery
Beginning jQuery
 
An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
JavaScript 101
JavaScript 101JavaScript 101
JavaScript 101
 
HTML and Responsive Design
HTML and Responsive Design HTML and Responsive Design
HTML and Responsive Design
 
Design Concepts and Web Design
Design Concepts and Web DesignDesign Concepts and Web Design
Design Concepts and Web Design
 
Learning Python - Week 4
Learning Python - Week 4 Learning Python - Week 4
Learning Python - Week 4
 
Learning Python - Week 2
Learning Python - Week 2Learning Python - Week 2
Learning Python - Week 2
 
Learning Python - Week 1
Learning Python - Week 1Learning Python - Week 1
Learning Python - Week 1
 
Freedom of Speech - Louis Brandeis
Freedom of Speech - Louis BrandeisFreedom of Speech - Louis Brandeis
Freedom of Speech - Louis Brandeis
 
Networked Information Economy / Benkler
Networked Information Economy / BenklerNetworked Information Economy / Benkler
Networked Information Economy / Benkler
 
Convergence Culture / Jenkins
Convergence Culture / JenkinsConvergence Culture / Jenkins
Convergence Culture / Jenkins
 
How to Share Your Digital Stories
How to Share Your Digital StoriesHow to Share Your Digital Stories
How to Share Your Digital Stories
 

Kürzlich hochgeladen

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
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...apidays
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
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...Orbitshub
 
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 Takeoffsammart93
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2
 
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 FMESafe 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 2024Victor Rentea
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelDeepika Singh
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxRemote DBA Services
 
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
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
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.pptxRustici Software
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Kürzlich hochgeladen (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
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
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
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
 
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
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
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 ...
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
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
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

Learning Python

  • 2. WHY LEARN TO PROGRAM? • An important skill in making things for online media: problem solving • Process of learning to program: Practice and improve your problem-solving skills • Thinking in a structured way • Learning how to find answers by a combination of online searching and trial-and-error
  • 3. WHY PYTHON? Python is one of the most-used programming languages today. Source: https://github.com/mjwillson/ProgLangVisualise
  • 4. WHY NOT JAVASCRIPT? • JavaScript is a must for Web development today. • If you already knew how to program, you could jump straight into JavaScript and not learn Python. • As a first programming language, Python is easier to learn than JavaScript. • The techniques you learn as you learn Python will help you understand JavaScript more quickly. http://www.quora.com/Is-it-better-to-learn-Python-or- JavaScript-as-a-first-language
  • 5. USING PYTHON • There are two ways to use Python: • Interactive mode • Script mode • In interactive mode, you type Python programs and the Python interpreter displays the result immediately … Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 2–3
  • 7. USING PYTHON • There are two ways to use Python: • Interactive mode • Script mode • In script mode, you write code in a text file, save it, and then use the interpreter to execute (or run) the contents of the file (which is called a script) • Python scripts have filenames that end with .py Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 2–3
  • 8. PYTHON THIS IS A SCRIPT, SHOWN IN A TEXT EDITOR
  • 9. When you run a Python script (left) in the Python interpreter, the output (but not the stored script) is displayed onscreen (right).
  • 10. WHAT A PROGRAM DOES • Input: Get data from the keyboard, a file, or some other device • Output: Display data on the screen, or send data to a file or other device • Math: Perform basic mathematical operations like addition and multiplication • Conditional execution: Check for certain conditions and execute the appropriate code • Repetition: Perform some action repeatedly, usually with some variation Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), page 3
  • 11. WHAT A PROGRAM DOES (2) • Input: (1) run a script; (2) raw_input • Output: (1) print; (2) create and write to text files • Math: +, –, /, *, %, >, <, >=, <=, == • Conditional execution: if, elif, else • Repetition: for, while You will learn how to do each of these, which is pretty much all there is to programming. (I’m lying a little bit.)
  • 12. ―Every program you’ve ever used, no matter how complicated, is made up of instructions that look pretty much like these. So you can think of programming as the process of breaking a large, complex task into smaller and smaller subtasks until the subtasks are simple enough to be performed with one of these basic instructions.‖ Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), page 4
  • 13. DEBUGGING Errors are bugs. Finding and fixing them is debugging. • Syntax errors: Structure and rules, such as: ―Parentheses come in pairs‖ • Runtime errors: Appear while the program is running (these are called exceptions) • Semantic errors: Your script runs but does not do what you wanted it to do Source: Think Python, by Allen B. Downey (O’Reilly Media: 2012), pages 4–5
  • 14. In the practice of programming—of writing programs—a lot of the work is in the debugging. Each error becomes a puzzle to be solved. ―Why doesn’t it work the way I want it to work?‖ The process of learning to program is a process of problem-solving.
  • 15. RESOURCES • Think Python, by Allen B. Downey http://www.greenteapress.com/thinkpython/ • Learn Python the Hard Way, by Zed A. Shaw http://learnpythonthehardway.org/ • Codecademy: Python http://www.codecademy.com/tracks/python
  • 16. PYTHON LEARNING TO PROGRAM Presentation by Mindy McAdams, University of Florida [ 2012 ]

Hinweis der Redaktion

  1. CONTACT: Mindy McAdams – http://mindymcadams.com/
  2. Source:https://github.com/mjwillson/ProgLangVisualise
  3. Resource: http://www.quora.com/Is-it-better-to-learn-Python-or-JavaScript-as-a-first-language
  4. Think Python, by Allen B. Downey (O’Reilly Media: 2012), page 3
  5. Resource: http://www.tutorialspoint.com/python/python_basic_operators.htm
  6. “One of the most important skills you will acquire is debugging.” – Downey, p. 5 Resource: http://docs.python.org/2/tutorial/errors.html
  7. CONTACT: Mindy McAdams – http://mindymcadams.com/