Question: Dictionary food _ quantities contains four key - value pairs, each representing a food name and the quantity purchased. Read a food name from input.
Dictionary foodquantities contains four keyvalue pairs, each representing a food name and the quantity purchased. Read a food name from input. Then, output the corresponding quantity from foodquantities. Finally, delete that pair from foodquantities.
Click here for example
Ex: If the input is peppers, then the output is:
Remaining pairs:
donuts: 'mushrooms': 'muffins':
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
