Created
August 10, 2016 02:40
-
-
Save Gwith/013872010789eae3b744b3b034daeada to your computer and use it in GitHub Desktop.
This file contains hidden or 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_dic = { 'Jill' : 1, 'jason' : 3, 'amanda' : 4 } | |
| my_dic2 = { 'Jill' : 2, 'jason' : 3, 'amanda' : 5, 'derek' : 3} | |
| for key in my_dic2: | |
| my_dic = my_dic2.get(key, 0) + my_dic | |
| print(my_dic) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment