<human>:  Python: Perform an operation on each dictionary value
<bot>: Here is some code to multiple each value by `2` for all keys in a dictionary `my_dict`

my_dict.update((x, y * 2) for x, y in list(my_dict.items()))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.