SlideShare a Scribd company logo
1 of 10
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Variables
Year 9 Computing
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Starter Activity
What do you remember from last week?
Open Pyscripter Portable
Write a program that will print the message “I
love programming!” onto the screen
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Lesson Objectives
To know what a variable is
and how it can be used in a
program
To be able to write programs
using variables
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Quick Activity
Completing the sentence – which is funniest?
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Quick Activity: Your Turn!
Who can come up with the best excuse to fill in the
blank?!
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
What does this have to do with
programming?
Ever used a website, program or game where the text
was personalised to you? Miss Scott has…
The programmers haven’t written separate versions for
each and every name possibility - they’ve simply used
variables to insert the personalised information into their
program. Using a variable is like leaving a blank to be
filled in, as we saw on the card game.
Amazon
PowerPoint
Wii Fit
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Demo
Your teacher will show you a program which simulates
the activity on slide 4. We will discuss the questions
below.
5. How do we join variables to our sentences?
3. How do we indicate which are our sentences and which are variables?
4. How can we quickly identify variables when looking at our code?
2. How do we collect input from the user?
1. Can you spot the variable in this code? What is it called?
Teacher answers
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Task: Your Turn!
Copy and paste the “lesson tasks” PowerPoint from
today’s lesson folder to your own area. Then open it up
and complete the exercises. Upload to your blog once
you’re done.
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Plenary
We will look at some of your programs and see
who has managed to come up with the funniest
sentences!
Earlier on (slide 6) we thought about some real-
world examples of the use of variables… Can
you think of any more?
Next week we will do some more exercises
involving variables.
Faculty of Business & Computing
Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4
Homework
Download PyScripter Portable on your home
computer, if you haven’t done so already.
Put a screenshot on your blog to prove you
have done this successfully.

More Related Content

What's hot

Needs assessment part_2
Needs assessment part_2Needs assessment part_2
Needs assessment part_2
taschica
 
LeadTeam start-up: step 11 Validating hypothesis
LeadTeam start-up: step 11 Validating hypothesis LeadTeam start-up: step 11 Validating hypothesis
LeadTeam start-up: step 11 Validating hypothesis
Clémence Lagaüzère
 
Introduction to Module 7
Introduction to Module 7Introduction to Module 7
Introduction to Module 7
etlearn
 

What's hot (20)

Final course reflection
Final course reflectionFinal course reflection
Final course reflection
 
6 weeks Summer Training with live project on Dot Net, Java, PHP in Gurgaon D...
6 weeks Summer Training with live project on Dot Net, Java, PHP  in Gurgaon D...6 weeks Summer Training with live project on Dot Net, Java, PHP  in Gurgaon D...
6 weeks Summer Training with live project on Dot Net, Java, PHP in Gurgaon D...
 
CSCI 1001-Pearson
CSCI 1001-PearsonCSCI 1001-Pearson
CSCI 1001-Pearson
 
Needs assessment part_2
Needs assessment part_2Needs assessment part_2
Needs assessment part_2
 
LeadTeam start-up: step 11 Validating hypothesis
LeadTeam start-up: step 11 Validating hypothesis LeadTeam start-up: step 11 Validating hypothesis
LeadTeam start-up: step 11 Validating hypothesis
 
LeadTeam Start-up : step 6 Value Curve and Landing page
LeadTeam Start-up : step 6 Value Curve and Landing pageLeadTeam Start-up : step 6 Value Curve and Landing page
LeadTeam Start-up : step 6 Value Curve and Landing page
 
Backchannel & notetaking
Backchannel & notetakingBackchannel & notetaking
Backchannel & notetaking
 
Luz2
Luz2Luz2
Luz2
 
Brewing beer
Brewing beerBrewing beer
Brewing beer
 
eLearning Design Best Practices for Engaging, Relevant Training!
eLearning Design Best Practices for Engaging, Relevant Training!eLearning Design Best Practices for Engaging, Relevant Training!
eLearning Design Best Practices for Engaging, Relevant Training!
 
5 Elements that You Can Outsource for eLearning Design & Development
5 Elements that You Can Outsource for eLearning Design & Development5 Elements that You Can Outsource for eLearning Design & Development
5 Elements that You Can Outsource for eLearning Design & Development
 
CFR Part 11 Terms and Definitions
CFR Part 11 Terms and DefinitionsCFR Part 11 Terms and Definitions
CFR Part 11 Terms and Definitions
 
Let’s Estimate the Cost of eLearning Course Development
Let’s Estimate the Cost of eLearning Course DevelopmentLet’s Estimate the Cost of eLearning Course Development
Let’s Estimate the Cost of eLearning Course Development
 
Introduction to Module 7
Introduction to Module 7Introduction to Module 7
Introduction to Module 7
 
Technology Competence Levels
Technology Competence LevelsTechnology Competence Levels
Technology Competence Levels
 
Skillsaudit 150906124841-lva1-app6892
Skillsaudit 150906124841-lva1-app6892Skillsaudit 150906124841-lva1-app6892
Skillsaudit 150906124841-lva1-app6892
 
Final presentation spea
Final presentation speaFinal presentation spea
Final presentation spea
 
8 Programming Concepts You Should Know
8 Programming Concepts You Should Know 8 Programming Concepts You Should Know
8 Programming Concepts You Should Know
 
Ci 350 twitter assignment ci350 class
Ci 350 twitter assignment ci350 classCi 350 twitter assignment ci350 class
Ci 350 twitter assignment ci350 class
 
Outsourcing your Flash eLearning to HTML5 Conversion? 5 Questions to Ask!
Outsourcing your Flash eLearning to HTML5 Conversion? 5 Questions to Ask!Outsourcing your Flash eLearning to HTML5 Conversion? 5 Questions to Ask!
Outsourcing your Flash eLearning to HTML5 Conversion? 5 Questions to Ask!
 

Viewers also liked (7)

An Introduction To Python - Variables, Math
An Introduction To Python - Variables, MathAn Introduction To Python - Variables, Math
An Introduction To Python - Variables, Math
 
Python 101
Python 101Python 101
Python 101
 
Lección No. 1 de Python
Lección No. 1 de PythonLección No. 1 de Python
Lección No. 1 de Python
 
Python Programming Essentials - M5 - Variables
Python Programming Essentials - M5 - VariablesPython Programming Essentials - M5 - Variables
Python Programming Essentials - M5 - Variables
 
Introduccion a python 3
Introduccion a python 3Introduccion a python 3
Introduccion a python 3
 
Python - the basics
Python - the basicsPython - the basics
Python - the basics
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 

Similar to Lesson 4 variables in Python

ONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docxONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docx
cherishwinsland
 
It application
It applicationIt application
It application
wa9lawi
 
Handout 00 0
Handout 00 0Handout 00 0
Handout 00 0
Mahmoud
 
iPad in Education - Evaluation and Report 2012 - 2013
iPad in Education - Evaluation and Report 2012 - 2013iPad in Education - Evaluation and Report 2012 - 2013
iPad in Education - Evaluation and Report 2012 - 2013
Matt Britland
 

Similar to Lesson 4 variables in Python (20)

BYOD Implementation Plan
BYOD Implementation PlanBYOD Implementation Plan
BYOD Implementation Plan
 
Computing Student Success at Montgomery College in the Web 3.0 Era
Computing Student Success at Montgomery College  in the Web 3.0 EraComputing Student Success at Montgomery College  in the Web 3.0 Era
Computing Student Success at Montgomery College in the Web 3.0 Era
 
Microsoft Apps for Learning
Microsoft Apps for LearningMicrosoft Apps for Learning
Microsoft Apps for Learning
 
ONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docxONLINE ACCESSThank you for purchasing a new copy of In.docx
ONLINE ACCESSThank you for purchasing a new copy of In.docx
 
Ttc Google Apps Presentation Board Office Apri
Ttc Google Apps Presentation Board Office ApriTtc Google Apps Presentation Board Office Apri
Ttc Google Apps Presentation Board Office Apri
 
Uwcsea day 1v2
Uwcsea day 1v2Uwcsea day 1v2
Uwcsea day 1v2
 
Using Technology in Math Class
Using Technology in Math ClassUsing Technology in Math Class
Using Technology in Math Class
 
Notes
NotesNotes
Notes
 
Teaching with the iPad
Teaching with the iPadTeaching with the iPad
Teaching with the iPad
 
Apps For Future Students
Apps For Future StudentsApps For Future Students
Apps For Future Students
 
Apps for college students
Apps for college studentsApps for college students
Apps for college students
 
It application
It applicationIt application
It application
 
10 Educational Apps
10 Educational Apps 10 Educational Apps
10 Educational Apps
 
Tech Tips for Teachers
Tech Tips for TeachersTech Tips for Teachers
Tech Tips for Teachers
 
Business 1
 Business 1 Business 1
Business 1
 
Handout 00 0
Handout 00 0Handout 00 0
Handout 00 0
 
20100330paperFilipAssessment
20100330paperFilipAssessment20100330paperFilipAssessment
20100330paperFilipAssessment
 
iPad in Education - Evaluation and Report 2012 - 2013
iPad in Education - Evaluation and Report 2012 - 2013iPad in Education - Evaluation and Report 2012 - 2013
iPad in Education - Evaluation and Report 2012 - 2013
 
Coding wp2-comparative study-si(1)
Coding wp2-comparative study-si(1)Coding wp2-comparative study-si(1)
Coding wp2-comparative study-si(1)
 
How long does it take to build an e learning mobile application
How long does it take to build an e learning mobile application How long does it take to build an e learning mobile application
How long does it take to build an e learning mobile application
 

More from eurythmic (8)

Cognitive load - improvements to data representation resources
Cognitive load - improvements to data representation resourcesCognitive load - improvements to data representation resources
Cognitive load - improvements to data representation resources
 
Variables lesson tasks
Variables lesson tasksVariables lesson tasks
Variables lesson tasks
 
Interactivity in power point
Interactivity in power pointInteractivity in power point
Interactivity in power point
 
Computer ads
Computer adsComputer ads
Computer ads
 
Handing your work in using Edmodo
Handing your work in using EdmodoHanding your work in using Edmodo
Handing your work in using Edmodo
 
SJL staff meeting - BYOD - 21st May 2014
SJL staff meeting - BYOD - 21st May 2014SJL staff meeting - BYOD - 21st May 2014
SJL staff meeting - BYOD - 21st May 2014
 
Windows email tutorial
Windows email tutorialWindows email tutorial
Windows email tutorial
 
Lesson 1 introduction to project
Lesson 1   introduction to projectLesson 1   introduction to project
Lesson 1 introduction to project
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Recently uploaded (20)

Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 

Lesson 4 variables in Python

  • 1. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Variables Year 9 Computing
  • 2. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Starter Activity What do you remember from last week? Open Pyscripter Portable Write a program that will print the message “I love programming!” onto the screen
  • 3. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Lesson Objectives To know what a variable is and how it can be used in a program To be able to write programs using variables
  • 4. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Quick Activity Completing the sentence – which is funniest?
  • 5. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Quick Activity: Your Turn! Who can come up with the best excuse to fill in the blank?!
  • 6. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 What does this have to do with programming? Ever used a website, program or game where the text was personalised to you? Miss Scott has… The programmers haven’t written separate versions for each and every name possibility - they’ve simply used variables to insert the personalised information into their program. Using a variable is like leaving a blank to be filled in, as we saw on the card game. Amazon PowerPoint Wii Fit
  • 7. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Demo Your teacher will show you a program which simulates the activity on slide 4. We will discuss the questions below. 5. How do we join variables to our sentences? 3. How do we indicate which are our sentences and which are variables? 4. How can we quickly identify variables when looking at our code? 2. How do we collect input from the user? 1. Can you spot the variable in this code? What is it called? Teacher answers
  • 8. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Task: Your Turn! Copy and paste the “lesson tasks” PowerPoint from today’s lesson folder to your own area. Then open it up and complete the exercises. Upload to your blog once you’re done.
  • 9. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Plenary We will look at some of your programs and see who has managed to come up with the funniest sentences! Earlier on (slide 6) we thought about some real- world examples of the use of variables… Can you think of any more? Next week we will do some more exercises involving variables.
  • 10. Faculty of Business & Computing Student Shared > ICT > Year 9 > Social NetworkingStudent Shared > Computing > Year 9 > Programming > Lesson 4 Homework Download PyScripter Portable on your home computer, if you haven’t done so already. Put a screenshot on your blog to prove you have done this successfully.