Question: Multiple key - value pairs, each representing a person's name and food, are read from input and added to order _ records 1 . First,

Multiple key-value pairs, each representing a person's name and food, are read from input and added to order_records1. First, merge order_records2 with order_records1. Then, merge order_records3 with order_records2. Finally, clear order_records1.
Click here for example
Ex: If the input is:
Jan peas
Huy lemon
end
then the output is:
Order records 1:
{}
Order records 2:
{'Kim': 'artichoke', 'Bob': 'grape', 'Jan': 'peas', 'Huy': 'lemon'}
Order records 3:
{'Ani': 'carrot', 'Kim': 'artichoke', 'Bob': 'grape', 'Jan': 'peas', 'Huy': 'lemon'}

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!