Teacher video: Nested loops in Python

Lock

Watch the full video

CPD badge

Exploring nested loops in Python

This Computing video introduces teachers to nested loops, explaining how an outer loop controls larger steps while an inner loop repeats smaller actions to create patterns in two directions.

It shows how nested loops work in block-based coding and Python, highlighting the use of grouping in Scratch and indentation in Python. It explains how this concept is applied using the micro:bit LED grid, where x and y coordinates control rows and columns. Teachers are supported in helping children adapt the code by changing values such as brightness and pauses to explore how patterns change.

This video is part of Kapow Primary’s Year 5 and 6 videos, which provide guidance and support to help teachers develop confidence and subject knowledge when delivering the computing curriculum.

See more of our Year 6 Computing scheme of work.

For copyright reasons, you may not screenshot this page.
Press esc to exit