I have:
dictionary = {\"foo\":12, \"bar\":2, \"jim\":4, \"bob\": 17}
I want to iterate over this dictionary, but over the values instead of the
Use items or iteritems on dictionary. Something like:
items
iteritems
list = [] for k, v in dictionary.iteritems(): if v > 6: list.append(k) print list