SlideShare a Scribd company logo
1 of 10
Lesson Tasks
PYTHON LESSON 2: VARIABLES
Choose a black card you think will be
funny. Delete the others.
Choose the three funniest white cards
that go with your black card. Delete
the others.
[Create your own
card here if you like]
Get coding!
Try it out!
 Run your program using this icon:
 When you get the input box, type in one of the answers from the white
cards on slide 3.
 Does it work as intended? If not, go back and check your code
 If it works, add comments to your code (remember comments explain
your program and you start them with #). Then move on to the next slide
Add screenshot of your code here
Add screenshots of the output with all
three of your white cards here
Questions for you to answer
1. What is the name of the variable in your code?
2. What does the variable do?
3. How do you get input from the program user?
4. How can we quickly identify variables when looking at our code?
5. How do we indicate which are our sentences and which are variables?
6. How do we join our variables to sentences?
Extension Tasks
 Can you work out how to ask the user their name and then say hello to
them before starting the Complete the Sentence game? If you get this
working, put a screenshot on the next slide.
 The variable in our code was called “answer”. Read here about naming
variables and different data types and then summarise what you have
learnt in your own words
Extension Code

More Related Content

Viewers also liked

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
 
Lesson 1 introduction to project
Lesson 1   introduction to projectLesson 1   introduction to project
Lesson 1 introduction to projecteurythmic
 
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
 
Interactivity in power point
Interactivity in power pointInteractivity in power point
Interactivity in power pointeurythmic
 
Illustrations
IllustrationsIllustrations
IllustrationsMarc Ngui
 
Lesson 4 variables in Python
Lesson 4   variables in PythonLesson 4   variables in Python
Lesson 4 variables in Pythoneurythmic
 
Usura bancaria: da problema a opportunità
Usura bancaria: da problema a opportunitàUsura bancaria: da problema a opportunità
Usura bancaria: da problema a opportunitànuovavita2013
 

Viewers also liked (14)

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
 
Lesson 1 introduction to project
Lesson 1   introduction to projectLesson 1   introduction to project
Lesson 1 introduction to project
 
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
 
Interactivity in power point
Interactivity in power pointInteractivity in power point
Interactivity in power point
 
Hap
HapHap
Hap
 
Hap (1)
Hap (1)Hap (1)
Hap (1)
 
Illustrations
IllustrationsIllustrations
Illustrations
 
Lesson 4 variables in Python
Lesson 4   variables in PythonLesson 4   variables in Python
Lesson 4 variables in Python
 
Engl100 (1)
Engl100 (1)Engl100 (1)
Engl100 (1)
 
Profil a jajang
Profil a jajangProfil a jajang
Profil a jajang
 
Usura bancaria: da problema a opportunità
Usura bancaria: da problema a opportunitàUsura bancaria: da problema a opportunità
Usura bancaria: da problema a opportunità
 
الرياضيات
الرياضياتالرياضيات
الرياضيات
 

Similar to Variables lesson tasks

Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to ProgrammingALI RAZA
 
Turning Point Setup1 R E V I S E D
Turning  Point  Setup1  R E V I S E DTurning  Point  Setup1  R E V I S E D
Turning Point Setup1 R E V I S E DCCPS
 
nothing at all for programming site<gggggg
nothing at all for programming site<ggggggnothing at all for programming site<gggggg
nothing at all for programming site<ggggggAnasAshraf34
 
Gate questions ec04 2014 praveen someh
Gate  questions ec04 2014 praveen somehGate  questions ec04 2014 praveen someh
Gate questions ec04 2014 praveen somehpraveensomesh
 
Iisrt zz mamatha
Iisrt zz mamathaIisrt zz mamatha
Iisrt zz mamathaIISRT
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingHamad Odhabi
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and FlowchartsSabik T S
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sitSaurabh846965
 
Comp 122 lab 2 lab report and source code
Comp 122 lab 2 lab report and source codeComp 122 lab 2 lab report and source code
Comp 122 lab 2 lab report and source codepradesigali1
 
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdf
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdfProyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdf
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdfManuel González Maroto
 
Using Applications in Windows - R.D.Sivakumar
Using Applications in Windows - R.D.SivakumarUsing Applications in Windows - R.D.Sivakumar
Using Applications in Windows - R.D.SivakumarSivakumar R D .
 
E-Services: Activation Instructions
E-Services: Activation InstructionsE-Services: Activation Instructions
E-Services: Activation InstructionsClaudia Larrotta
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithmsStudent
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxRusherGamer1
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st TutorialHassan A-j
 

Similar to Variables lesson tasks (20)

Introduction to Programming
Introduction to ProgrammingIntroduction to Programming
Introduction to Programming
 
Turning Point Setup1 R E V I S E D
Turning  Point  Setup1  R E V I S E DTurning  Point  Setup1  R E V I S E D
Turning Point Setup1 R E V I S E D
 
ARTS-6-Q1-W2.pptx
ARTS-6-Q1-W2.pptxARTS-6-Q1-W2.pptx
ARTS-6-Q1-W2.pptx
 
nothing at all for programming site<gggggg
nothing at all for programming site<ggggggnothing at all for programming site<gggggg
nothing at all for programming site<gggggg
 
Gate questions ec04 2014 praveen someh
Gate  questions ec04 2014 praveen somehGate  questions ec04 2014 praveen someh
Gate questions ec04 2014 praveen someh
 
Practical 01 (detailed)
Practical 01 (detailed)Practical 01 (detailed)
Practical 01 (detailed)
 
Iisrt zz mamatha
Iisrt zz mamathaIisrt zz mamatha
Iisrt zz mamatha
 
Cis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programmingCis 1403 lab1- the process of programming
Cis 1403 lab1- the process of programming
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Algorithm for computational problematic sit
Algorithm for computational problematic sitAlgorithm for computational problematic sit
Algorithm for computational problematic sit
 
Comp 122 lab 2 lab report and source code
Comp 122 lab 2 lab report and source codeComp 122 lab 2 lab report and source code
Comp 122 lab 2 lab report and source code
 
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdf
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdfProyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdf
Proyecto STEAM-Robotica_movilidad_Airola_marzo_2023.pdf
 
Using Applications in Windows - R.D.Sivakumar
Using Applications in Windows - R.D.SivakumarUsing Applications in Windows - R.D.Sivakumar
Using Applications in Windows - R.D.Sivakumar
 
E-Services: Activation Instructions
E-Services: Activation InstructionsE-Services: Activation Instructions
E-Services: Activation Instructions
 
flowchart & algorithms
flowchart & algorithmsflowchart & algorithms
flowchart & algorithms
 
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptxChallenges-and-Consideration-in-Programming-Logic-and-Design...pptx
Challenges-and-Consideration-in-Programming-Logic-and-Design...pptx
 
Problem
ProblemProblem
Problem
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st Tutorial
 
reptProblem
reptProblemreptProblem
reptProblem
 
Module 1 python.pptx
Module 1 python.pptxModule 1 python.pptx
Module 1 python.pptx
 

Recently uploaded

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
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
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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
 
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
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
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 . pdfQucHHunhnh
 
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
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
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
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 

Recently uploaded (20)

Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
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.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
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
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
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
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Variables lesson tasks

  • 2. Choose a black card you think will be funny. Delete the others.
  • 3. Choose the three funniest white cards that go with your black card. Delete the others. [Create your own card here if you like]
  • 5. Try it out!  Run your program using this icon:  When you get the input box, type in one of the answers from the white cards on slide 3.  Does it work as intended? If not, go back and check your code  If it works, add comments to your code (remember comments explain your program and you start them with #). Then move on to the next slide
  • 6. Add screenshot of your code here
  • 7. Add screenshots of the output with all three of your white cards here
  • 8. Questions for you to answer 1. What is the name of the variable in your code? 2. What does the variable do? 3. How do you get input from the program user? 4. How can we quickly identify variables when looking at our code? 5. How do we indicate which are our sentences and which are variables? 6. How do we join our variables to sentences?
  • 9. Extension Tasks  Can you work out how to ask the user their name and then say hello to them before starting the Complete the Sentence game? If you get this working, put a screenshot on the next slide.  The variable in our code was called “answer”. Read here about naming variables and different data types and then summarise what you have learnt in your own words