Iterating over the data items in a dict.

Gaute B Strokkenes gs234 at
Mon Nov 6 15:00:26 CET 2000

I would like to iterate over the data items, not the keys, in a dict.
The closest I can get is:

        for n in mydict.keys():
            i = mydict[n]

However, this seems a bit awkward.

Big Gaute                     
Yow!  Are we wet yet?

More information about the Python-list mailing list