In computer programming, iteration is a sequence of instructions that is continually repeated. You can think of iteration as a loop, but please use the word "iteration" or "iterate". As a computer scientist, we use specialized vocabulary to communicate with other computer scientists.
There are different types of iterations:
- iterate until a certain condition is reached
- iterate a certain number of times
- iterate through elements in a list or array
When we iterate our programming language tracks what step of the iteration is currently being executed. For example: if we are iterating 100 times (from zero to one hundred, incrementing by one each at each step), our programming language will keep track of which iteration we are cycling through.
Iteration is a fundamental programming idea that is commonly used in writing programs.
This is one of the better videos I've seen on iteration
# This example is in the Python programming language for i in range (0,100): print(i) # output will be: 0 1 2 3 4 5 ... 99
- Construct algorithms using loops, branching.
A unit of abstract mathematical system subject to the laws of arithmetic.
Give a sequence of brief answers with no explanation.
an increase or addition, especially one of a series on a fixed scale.
Develop information in a diagrammatic or logical form.