Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

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


Download ppt "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."

Similar presentations


Ads by Google