Iterators and Built-in Types : iter « Buildin Function « Python Tutorial






D = {'a':1, 'b':2, 'c':3}
x = iter(D)
print x.next(  )
print x.next(  )








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