Question: The food variable will store a randomly chosen food string like gummy bear or morning bun. Some of these items are in the bakery _
The food variable will store a randomly chosen food string like "gummy bear" or "morning bun". Some of these items are in the bakerystock dictionary, and some are not.
Your task is to simply print out a string depending on if food is a value in bakerystock If food is contained in bakerystock print out a string that states how many items are left: left" if food is "toffee cookie" or left" if food is "morning bun" etc.
If food is not contained in bakerystock like "gummy bear" print out We don't make that"
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
