Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions