Question: Two string and integer pairs are read from input, each pair representing a food name and the quantity purchased. Create a dictionary named food _
Two string and integer pairs are read from input, each pair representing a food name and the quantity purchased. Create a dictionary named foodquantities containing the following keyvalue pairs:
Key foodname with the value itemcount
Key foodname with the value itemcount
Click here for example
Ex: If the input is:
oranges
milkshakes
then the output is:
oranges:
milkshakes:
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
