What does iteration mean?

Repeating a set of instructions, either a fixed number of times (count-controlled, a for loop) or while a condition holds (condition-controlled, a while loop). One of the three basic programming constructs.

Also written as: iterate, iterates

In a lesson

To drive a square you could write forward, turn, forward, turn, forward, turn, forward, turn. Eight lines for one idea repeated four times. A loop writes the idea once and says how many times. Repeating code is called iteration, and a loop that runs a set number of times is count-controlled.

Learn it

Used in

and 14 more lessons.

Do the lesson in the simulator

All glossary terms