Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: iterate through a dictionary key list

Python: iterate through a dictionary key list
{filelink=16012}

even  =   [2, 4, 6, 8]
odd   =   [1, 3, 5, 7, 9]
dict={'even':even, 'odd':odd}
for key in dict.keys():
     dict[key] *= 10
print dict.values()

Users who found this page were searching for:

  • python iterate through hash kesy
  • python searching in list of dictionaries
  • python enumerate dictionary
  • python get iterator to dictionary entry
  • iterate over keys, list in dictionary python
  • enumerate dictionary python
  • python iterate dict key value
  • python iterate through dictionary
  • iterating over a list with a dictionary python
  • python list iteration definition

No comments yet.

Leave a Comment