sheikhsadi46 / combines-two-dictionary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#A Python program that combines two dictionary adding values for common keys.

Input:
dict1 = {'a': 10, 'b':20, 'c':30}
dict2 = {'a': 10, 'c':20, 'd':30, 'e':40}

Output:
{'a': 20, 'b': 20, 'c': 50, 'd': 30, 'e': 40}

About


Languages

Language:Python 100.0%