map on a dict python code example Example: python dictionary map function dictionary = {k: f(v) for k, v in dictionary.items()}