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