Created
May 15, 2014 07:48
-
-
Save hanksudo/f9a7dac18a99a4736ebc to your computer and use it in GitHub Desktop.
Perform an operation on each dictionary value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
my_dict.update((x, y*2) for x, y in my_dict.items()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment