python3 applying for loop instance to next iteration code example
Example 1: how to use iteration in python
>>> a = ['foo', 'bar', 'baz']
>>> for i in a:
... print(i)
...
foo
bar
baz
Example 2: how to use iteration in python
n = 5
while n > 0:
print n
n = n-1
print 'Blastoff!'