Programming KS4
Programming KS4
KS4 - Programming
Starter activity
print("What’s your name?") Question Can you predict what the outcome
name = input() of running this program will be?
3
Activity 1
Iteration
Iteration
while condition
: You will need a while statement:
block of When your program needs to repeat actions, while a
statements
condition is satisfied.
Activity 1
Subtle points
Subtle points
number = 4
Live coding
print("Guess a number between 1 and 10")
guess = int(input())
if guess != number:
print("Incorrect")
else:
print("Correct")
Activity 3
Parson’s Puzzle
15
Summary
Next lesson
Learnt about iteration and applied a while Use selection within a while loop.
loop to your code.
16