# Iteration is the execution of a statement repeatedly and without # making any errors.
>>> a = ['foo', 'bar', 'baz'] >>> for i in a: ... print(i) ... foo bar baz
for i = 1 to 10 <loop body>
n = 5 while n > 0: print n n = n-1 print 'Blastoff!'