ComputingYears 5–9Python

Loops in Python

Learn Loops in Python for Years 5–9 pupils (ages 9–14). Free practice questions, lessons and worked examples — aligned to the UK National Curriculum.

What you'll learn

  1. 1

    Imagine you have to clap your hands 5 times. Instead of saying 'clap, clap, clap, clap, clap', you can say 'clap 5 times!' That's a loop!

  2. 2

    What does a loop do?

  3. 3

    Let's make the computer print a happy face 3 times using a loop.

  4. 4

    Drag the blocks to make a loop that prints 'Hello!' 4 times.

  5. 5

    If a loop says 'for i in range(5):', how many times does it repeat?

  6. 6

    Now make a loop that prints a star ★ 3 times.

  7. 7

    What is the special word that starts a loop in Python?

Practise Loops in Python with Whizlo

Free AI-tutored lessons, unlimited practice questions, and progress tracking for ages 9–14. Aligned to the UK National Curriculum.