Iterating over the data items in a dict.

Syver Enstad syver at
Mon Nov 6 18:03:25 CET 2000

"Gaute B Strokkenes" <gs234 at> wrote in message
news:4ak8ahfbet.fsf at
> I would like to iterate over the data items, not the keys, in a dict.

I think you can do it like this:

for key, value in dict.items:
    # do stuff

More information about the Python-list mailing list