iteration statement in python code example
Example 1: what is iteration in python
# Iteration is the execution of a statement repeatedly and without
# making any errors.
Example 2: how to use iteration in python
n = 5
while n > 0:
print n
n = n-1
print 'Blastoff!'
Example 3: loop iteration in python
for (i = 1; i <= 10; i++)
<loop body>