daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Jun 18th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. my_dict = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5}
  2.  
  3. times_five = {k:v*5 for (k,v) in my_dict.items()}
  4. print(times_five)
  5. # Outputs {'a': 5, 'c': 15, 'b': 10, 'e': 25, 'd': 20}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top