Skip to content

Loops & Repetition

Summary

This chapter introduces loops as a way to repeat blocks efficiently, covering fixed-count loops, condition-based loops, and the forever loop, along with loop counters, nested loops, and how a loop body executes. Students also learn about loop efficiency and the risks of an infinite loop. This chapter is deliberately taught before the drawing chapter that follows, since drawing polygons, stars, and spirals depends on understanding repetition first, and it builds on the scripting foundation from Chapters 2 and 3. After completing this chapter, students will be able to write and nest loops to repeat actions a fixed or condition-based number of times.

Concepts Covered

This chapter covers the following 14 concepts from the learning graph:

  1. Loop
  2. Repeat Block
  3. Fixed-Count Loop
  4. Repeat Until Block
  5. Condition-Based Loop
  6. Forever Block
  7. Loop Counter
  8. Nested Loop
  9. Loop Body
  10. Exiting A Loop
  11. Repetition Pattern
  12. Loop Efficiency
  13. Infinite Loop
  14. Loop Iteration

Prerequisites

This chapter builds on concepts from:


TODO: Generate Chapter Content