Name: Worksheet
Types of loops
Task A: Compare two types of loops
Open the project ‘Dancing dinosaurs’: [Link]/dinos
Trigger the sequences to run by clicking on them.
What actions are the dinosaurs performing?
How many times do they repeat these actions?
Record your answers.
Actions the dinosaur is performing:
How many times does it repeat the actions?
Actions the dinosaur is performing:
How many times does it repeat the actions?
Image: Scratch is a project of the Scratch Foundation. It is available for free at [Link] 1
v3.0
Types of loops Worksheet
Actions the dinosaur is performing:
How many times does it repeat the actions?
Task B: Use loops for a purpose
Open the project ‘Dancing dinosaurs’ [Link]/dinos.
Modify the dinosaur code:
1) The green dinosaur should keep looking left and
right, but it stops after a few times. It should look
left and right continuously while the program
is running.
2) The red dinosaur should change colour as it jumps,
waiting one second between changes. It should
do this continuously.
3) The blue dinosaur should change its costume
10 times then stop.
Image: Scratch is a project of the Scratch Foundation. It is available for free at [Link]
© Oak National Academy 2025. Produced in partnership with The Raspberry Pi Foundation.
2
Licensed on the Open Government Licence v3.0, except where otherwise stated. See Oak terms & conditions.