You are on page 1of 10

Do Now (5 mins)

1. What do you think line 17 does?


2. What happens if the user enters
yes for question 1?
3. Lesson Question: Who is more
intelligent: A human or a computer?

9
1
0
1
1
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9

Lesson objectives
1. To use variables, string manipulation
and arithmetic operators to create a
self-marking quiz
2. To design efficient programs
3. To use different loops in our program

Python was used to


build

Getting started
1. Login and go to
WetherbyComputing.Weebly.com
2. Download the Wetherby Quiz file
3. Find it in the My Downloads folder
4. Right click the file -> Edit with IDLE
5. Help your peers

Independent task (12 mins)


1. Amend question1 so that the input is cast as
title case
2. Add your own second question
3. If they get a question wrong, tell them its
incorrect and take one point away from score
4. Test your program->Run using F5
Extension:
Add a third question: Name one of the three
Tributaries at Wetherby Senior?

Teacher demo (10 mins)


1.Efficient logical programming
for q3
2.Removing duplicate code using
a procedure
Extension: Keep repeating the quiz if
the score is less than 2

Using a multiple or statements


vs
using a list

Defining a list using square brackets


Checking the contents of the variable to see if
it matches any of the items in the SACaps list

Using a procedure to repeat common


tasks
Defining a procedure with a global
variable

Calling the procedure we defined

Closing question
Who is more intelligent:
A human or a computer?

You might also like