Write a Python program to combine two dictionary, adding values for common keys. d1 = {'a': 100, 'b': 200, 'c':300} d2 = {'a': 300, 'b': 200, 'd':400} Sample output: Counter({'a': 400, 'b': 400, 'd':...


12


Language Python


Write a Python program to combine two dictionary, adding values for common keys.<br>d1 = {'a': 100, 'b': 200, 'c':300}<br>d2 = {'a': 300, 'b': 200, 'd':400}<br>Sample output: Counter({'a': 400, 'b': 400, 'd': 400, 'c': 300})<br>

Extracted text: Write a Python program to combine two dictionary, adding values for common keys. d1 = {'a': 100, 'b': 200, 'c':300} d2 = {'a': 300, 'b': 200, 'd':400} Sample output: Counter({'a': 400, 'b': 400, 'd': 400, 'c': 300})

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here