#!/usr/local/bin/python3 iter = iter((1,2,3)) for i in xrange(3): print(iter.next())