lopping over Dictionaries

Kevin Howe khowe at performance-net.com
Fri Sep 17 14:07:18 EDT 1999


Is it possible to iterate through list of keys in a Dictionary?

something like this:

tel = {'jack': 4098, 'sape': 4139}

for (name, value) in tel.keys:
 print name, value


Thanks






More information about the Python-list mailing list