SlideShare uma empresa Scribd logo
1 de 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.

Mais conteúdo relacionado

Mais procurados

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...David Son
 
Needs assessment part_2
Needs assessment part_2Needs assessment part_2
Needs assessment part_2taschica
 
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
 
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 pageClémence Lagaüzère
 
Backchannel & notetaking
Backchannel & notetakingBackchannel & notetaking
Backchannel & notetakingLeAnn
 
CFR Part 11 Terms and Definitions
CFR Part 11 Terms and DefinitionsCFR Part 11 Terms and Definitions
CFR Part 11 Terms and DefinitionsPeterJack9
 
Introduction to Module 7
Introduction to Module 7Introduction to Module 7
Introduction to Module 7etlearn
 
Technology Competence Levels
Technology Competence LevelsTechnology Competence Levels
Technology Competence LevelsCathy Woods
 
Skillsaudit 150906124841-lva1-app6892
Skillsaudit 150906124841-lva1-app6892Skillsaudit 150906124841-lva1-app6892
Skillsaudit 150906124841-lva1-app6892HarryGamblin
 
Final presentation spea
Final presentation speaFinal presentation spea
Final presentation speaAllisonDong
 
8 Programming Concepts You Should Know
8 Programming Concepts You Should Know 8 Programming Concepts You Should Know
8 Programming Concepts You Should Know ramakrishnanpravin
 
Ci 350 twitter assignment ci350 class
Ci 350 twitter assignment ci350 classCi 350 twitter assignment ci350 class
Ci 350 twitter assignment ci350 classburdette94
 

Mais procurados (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!
 

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

Semelhante a Lesson 4 variables in Python

BYOD Implementation Plan
BYOD Implementation PlanBYOD Implementation Plan
BYOD Implementation Planrachelmx
 
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 Eraafacct
 
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.docxcherishwinsland
 
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 Apriconnectingeducation
 
Using Technology in Math Class
Using Technology in Math ClassUsing Technology in Math Class
Using Technology in Math ClassTherra Williams
 
Teaching with the iPad
Teaching with the iPadTeaching with the iPad
Teaching with the iPadChuck Konkol
 
Apps For Future Students
Apps For Future StudentsApps For Future Students
Apps For Future StudentsAhmed Metwalli
 
Apps for college students
Apps for college studentsApps for college students
Apps for college studentsSaifow
 
It application
It applicationIt application
It applicationwa9lawi
 
Tech Tips for Teachers
Tech Tips for TeachersTech Tips for Teachers
Tech Tips for TeachersPeter Pappas
 
Handout 00 0
Handout 00 0Handout 00 0
Handout 00 0Mahmoud
 
20100330paperFilipAssessment
20100330paperFilipAssessment20100330paperFilipAssessment
20100330paperFilipAssessmentFilip Vervenne
 
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 - 2013Matt Britland
 
Coding wp2-comparative study-si(1)
Coding wp2-comparative study-si(1)Coding wp2-comparative study-si(1)
Coding wp2-comparative study-si(1)Georgeta Manafu
 
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 Moon Technolabs Pvt. Ltd.
 

Semelhante a 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
 

Mais de eurythmic

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 resourceseurythmic
 
Variables lesson tasks
Variables lesson tasksVariables lesson tasks
Variables lesson taskseurythmic
 
Interactivity in power point
Interactivity in power pointInteractivity in power point
Interactivity in power pointeurythmic
 
Computer ads
Computer adsComputer ads
Computer adseurythmic
 
Handing your work in using Edmodo
Handing your work in using EdmodoHanding your work in using Edmodo
Handing your work in using Edmodoeurythmic
 
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 2014eurythmic
 
Windows email tutorial
Windows email tutorialWindows email tutorial
Windows email tutorialeurythmic
 
Lesson 1 introduction to project
Lesson 1   introduction to projectLesson 1   introduction to project
Lesson 1 introduction to projecteurythmic
 

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

Último

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
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.pptxAmita Gupta
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
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.pptxAmanpreet Kaur
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
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 FellowsMebane Rash
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
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Ữ Â...Nguyen Thanh Tu Collection
 
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)Jisc
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Último (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.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
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
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
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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Ữ Â...
 
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)
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

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.