code: def map_values(f, D):
      '''Map each value in the dictionary D to f(value).'''
      return { key:f(val) for key,val in D.iteritems() f map_values(f, D):
      '''Map each value in the dictionary D to f(value).'''
      return { key:f(val) for key,val in D.iteritems() }
docs: Map each value in the dictionary D to f(value).