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

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 nested dictionaries
  • python loop through list of dictionaries
  • python searching in list of dictionaries
  • python for loop iterate through password list
  • python loop through c++ vector
  • iterate through python dictionary in c++
  • python iterate through dictionary of dictionaries
  • python get iterator to dictionary entry
  • iterate over nested dictionary using array
  • iterate through python struct keys

No comments yet.

Leave a Comment