Question: Assume that you are a computer programmer at a company: A&B Inc. which was recently acquired by another company: ACME Corp. Both companies have some

Assume that you are a computer programmer at a company: A&B Inc.
which was recently acquired by another company: ACME Corp. Both companies have
some common clients, and they have monthly recurring orders from these clients. Luckily,
both companies store monthly order numbers in similar python dictionaries. Those
dictionaries need to be combined. You need to write a function that takes those two
dictionaries as input and returns combined order numbers as a dictionary again.
Hint: Combine both input dictionaries item by item into a new dictionary.
AnB orders ={ E l i z&Co : 200, A yla I n c : 150, Swan Ltd : 400,
Huan Inc : 500, BB Ltd : 300,E&A Inc :250}
ACME orders ={ E vil Co r p : 450, Moon Inc : 150, A yla I n c : 230,
Swan Ltd : 600,MNM Ltd : 300, E l i z&Co :350}
The return value should look like this:
com bi n e d o r d e r s ={ E vil Co r p : 450, Moon Inc : 150, A yla I n c : 380,
Swan Ltd : 1000, Huan Inc : 500,MNM Ltd : 300,
BB Ltd : 300, E l i z&Co : 550,E&A Inc :250}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!