SlideShare une entreprise Scribd logo
1  sur  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 ]

Contenu connexe

Tendances

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
 

Tendances (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
 

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Plus de 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
 

Plus de 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
 

Dernier

UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesThousandEyes
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Scott Andery
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 

Dernier (20)

UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyesHow to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
How to Effectively Monitor SD-WAN and SASE Environments with ThousandEyes
 
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
Enhancing User Experience - Exploring the Latest Features of Tallyman Axis Lo...
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 

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 ]

Notes de l'éditeur

  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/