loop through in python code example Example: how to use iteration in python n = 5 while n > 0: print n n = n-1 print 'Blastoff!'