Topic 2: Nested Loops and Combining Concepts
A nested loop is a loop inside another loop, allowing us to repeat actions in more complex patterns, combining with variables and conditiona
Core concept
A nested loop runs an inner loop completely for each single repetition of an outer loop, creating more complex repeated patterns.
How it works
For example, to draw a grid of dots, an outer loop might control rows while an inner loop controls dots in each row.
Why it matters
Combining loops with variables and conditionals lets us create more sophisticated programs, like games with scoring and levels.
Key detail
Understanding how to combine these programming concepts helps us build increasingly complex and interesting programs.
Exam highlight
Key diagram

- A picture showing a small project script combining a loop block, a variable, and an if-then block.
Keywords worth remembering
Trending
Most searched
Study resources
Notes & downloads
Quick notes
• A nested loop is a loop inside another loop.
• The inner loop runs fully for each outer loop repetition.
• Example: rows (outer loop), dots per row (inner loop).
• This creates complex repeated patterns.
• Combining loops with variables enables complex programs.
• This can include games with scoring and levels.
• Combining concepts builds sophisticated programs.
• This is an important programming skill.