Question: CHALLENGE ACTIVITY 3 . 5 . 1 : Dictionary basics. 5 4 7 1 4 8 . 3 1 5 4 6 4 2 .
CHALLENGE
ACTIVITY
: Dictionary basics.
qxy
Jump to level
Dictionary foodquantitypairs contains four keyvalue pairs, each representing a food name and the quantity needed. Read a food name from input. Then, output the corresponding quantity from foodquantitypairs. Finally, delete that pair from foodquantitypairs.
Click here for example
Ex: If the input is pickles, then the output is:
Remaining pairs:
lemons: 'cookies': 'peppers':
foodquantitypairs 'lemons': cookies' : 'peppers' : 'pickles' :
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
