Download presentation
Presentation is loading. Please wait.
Published byLeony Yuwono Modified over 5 years ago
1
Do it now – PAGE 7 You will find your do it now task in your workbook – look for the start button! Sunday, 19 May 2019
2
Selection statements
3
“Investigate how to use selection statements to control output”
Learning Objective “Investigate how to use selection statements to control output” You will find differentiated outcomes for this lesson on the front of your workbook. Sunday, 19 May 2019
4
New learning pet = input(“What pet do you have?”) if pet == “cat”:
print(“I like cats!”) The print statement
5
Independent Task Open IDLE from your start menu Complete the activity in your booklet on p8
6
Can you write a program that outputs different statements based on:
Learning Development Adapting your code Can you write a program that outputs different statements based on: their age the names of their pets the name of their favourite TV show
7
Talk Task What is the name given to the type of code which changes based on the data input? How could your program be improved? Why should you comment your code?
8
When should you use an if statement?
Exit ticket When should you use an if statement? R A G
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.