Check your computing terminology by joining the dominoes below: (Click on picture to start).
Computing TerminologyOpen Domino Activity
Check your computing terminology by joining the dominoes below: (Click on picture to start).
Computing TerminologyOpen Domino Activity

Let’s look at the following code that asks a simple Yes/No question:
answer = input("Are you over 16?")
if answer == "Yes":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "No":
print("You are too young to learn how to drive a car.")
What would happen if:
Now let’s look at how we could improve this code further:
answer = input("Are you over 16?").upper()
if answer == "YES":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "NO":
print("You are too young to learn how to drive a car.")
What do you think will now happen if:
answer = input("Are you over 16?").upper()
if answer == "YES":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "NO":
print("You are too young to learn how to drive a car.")
else:
print("Sorry your answer is not recognised. Restart the program and make sure you answer with the word Yes or the word No.")
What do you think will now happen if:
answer = ""
while (answer!="YES" and answer!="NO"):
answer = input("Are you over 16? (Yes or No)").upper()
if answer == "YES":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "NO":
print("You are too young to learn how to drive a car.")
def askYesNoQuestion(question):
YesNoAnswer = ""
while (YesNoAnswer!="YES" and YesNoAnswer!="NO"):
YesNoAnswer = input(question).upper()
return YesNoAnswer
answer = askYesNoQuestion("Are you over 16? (Yes or No)")
if answer == "YES":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "NO":
print("You are too young to learn how to drive a car.")
def askYesNoQuestion(question):
YesNoAnswer = input(question).upper()
if YesNoAnswer == "YES" or YesNoAnswer == "NO":
return YesNoAnswer
else:
return askYesNoQuestion(question)
answer = askYesNoQuestion("Are you over 16? (Yes or No)")
if answer == "YES":
print("You can take driving lessons to prepare for your driving test.")
elif answer == "NO":
print("You are too young to learn how to drive a car.")
We are trying to build a program that will ask the end-user to choose a flag amongst six flags. The program will then try to guess the selected flag by asking a maximum of two questions.
Look at the flowchart below used to describe our algorithm: (Click on flowchart to open in new window)

![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Using Flowchart Studio, design a similar flowchart used for the computer the guess the correct flag amonst these six new flags. You will need to ask different questions.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |



Have you ever been in a sweet shop to buy sweets? For this challenge we are going to spend £5 in a sweet shop hence we need to find out how many sweets we can afford. We will want to pick and mix sweets until we have spent all our money.
To help us buy our sweets we are going to write a program that will help us decide how many sweets we can afford while allowing us to pick and mix different types of sweets.
Here are the sweets available in the shop:

Here are the main steps of our program which will:
Now let’s see how a flowchart can help us describe these steps further:


A window cleaner uses the following pricing policy to calculate how much to charge for cleaning all the windows of his customer’s dwelling. This pricing policy is based on the number of windows that need to be cleaned and works as follows:
Your task is to write a computer program that prompts the end-user to enter the number of windows of their dwelling. The program will then calculate the quoted price using the pricing policy described above and display it to the end-user.
| Test # | Input values | Expected outcome | Actual outcome |
| 1 | Number of windows: 3 | Cost: £16 | |
| 2 | Number of windows: 5 | Cost: £20 | |
| 3 | Number of windows: 7 | Cost: £23 | |
| 4 | Number of windows: 9 | Cost: £26 | |
| 5 | Number of windows: 10 | Cost: £27.50 | |
| 6 | Number of windows: 11 | Cost: £28.50 | |
| 7 | Number of windows: 13 | Cost: £30.50 | |
| 8 | Number of windows: 15 | Cost: £32.50 |
Adapt your code to include a 10% discount in the quoted price.

In this challenge we are going to create some animated gradients by progressively changing the colour of the screen from one colour (e.g. red) to another (e.g. yellow).
For instance the RGB code for:
Check the following RGB Color picker to see how RGB codes work:
We will use an increment in our loop that will go up (increment) by 1 after each iteration, to count from 0 to 255. We will see that we can also use a negative step to count down from 255 to 0.
It will consist of:
Check the code below: If this code does not work in Internet Explorer, try to access this webpage using Google Chrome.
This code is slightly different as we want the red code to decrement from 255 to 0 while the blue code increments from 0 to 255. Check how it’s done in the code below:
Tweak the code in one of the trinkets above to implement this gradient.
Tweak the code in one of the trinkets above to implement this gradient.
Tweak the code in one of the trinkets above to implement this gradient.
Tweak the code in one of the trinkets above to implement this gradient.

For this challenge we are going to use Python turtle to create some charts: Column charts, line charts and radar charts.
First we need a data set. We will use the following data that shows the market share of the four most popular browsers in 2015.
| Web-browser | Percentage |
| Chrome | 44% |
| Safari | 20% |
| IE / Edge | 14% |
| Firefox | 12% |
| Other | 10% |


On this trinket widget the turtle screen is 400 pixels wide by 400 pixels high. So:
Look at the canvas below to understand how (x,y) coordinates work:
The code below shows you how to draw the first column. Your job consists of completing this code to draw all five columns.
For this challenge you are going to write a computer program where the user tries to score a goal against the computer.
The user will be asked where do they want to shoot and will have to choose one of the following five options:

The computer will act as the goal keeper and randomly choose one of these options too.
The program will decide if there is a goal or not by comparing the user’s choice with the computer option.
