Using Iterators with Sequences : Iterator « Dictionary « Python Tutorial






myTuple = (123, 'xyz', 45.67)
i = iter(myTuple)
print i.next()
print i.next()
print i.next()








8.14.Iterator
8.14.1.Using Iterators with Sequences