Using Iterators with Sequences : iter « Buildin Function « Python Tutorial






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








13.28.iter
13.28.1.Using Iterators with Sequences
13.28.2.Iterators and Built-in Types