#!/usr/local/bin/python2 x = iter((1,2,3,4,5)) for i in x: print 'i: ' + str(i) for i in x: print 'j: ' + str(i)