Skip to content

Instantly share code, notes, and snippets.

@Gwith
Created August 10, 2016 02:40
Show Gist options
  • Select an option

  • Save Gwith/013872010789eae3b744b3b034daeada to your computer and use it in GitHub Desktop.

Select an option

Save Gwith/013872010789eae3b744b3b034daeada to your computer and use it in GitHub Desktop.
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