Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
Iterations refer to individual repetitions or cycles through a set of instructions within a looping structure. Each time these instructions are executed is considered one iteration.
Related terms
looping structure: A block of code that repeats a specific set of instructions until a certain condition is met.
iteration variable: A variable used to keep track of the number of iterations that have occurred within a loop.
infinite loop: An unintended loop where the exit condition is never met, causing it to repeat indefinitely.