Iterating over the data items in a dict.
Syver Enstad
syver at NOSPAMcyberwatcher.com
Mon Nov 6 12:03:25 EST 2000
More information about the Python-list mailing list
Mon Nov 6 12:03:25 EST 2000
- Previous message (by thread): installer for 2.0
- Next message (by thread): Iterating over the data items in a dict.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"Gaute B Strokkenes" <gs234 at cam.ac.uk> wrote in message news:4ak8ahfbet.fsf at kern.srcf.societies.cam.ac.uk... > > 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
- Previous message (by thread): installer for 2.0
- Next message (by thread): Iterating over the data items in a dict.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list