Create a python program that (temporarily) stores different foods and your assessment of their flavor. Users can add new foods and flavor reviews to the program or look up existing foods to see what they thought of them previously.
Use a dictionary to act as your Taste Journal. You can use a loop to ask the user whether they'd like to look up an existing food or add a new one, then process the action as necessary. Your program should handle incorrect input.
Upload your .py file here.
Example:
Welcome to the Taste Journal! Enter 1 to add a new entry, or 2 to look up an existing entry. Enter 0 to quit.
>>> 1
What is the food to be added?
>>> Baked Potato
How did it taste?
>>>a little bland
Would you like to continue? Y or N
>>> Y
Welcome to the Taste Journal! Enter 1 to add a new entry, or 2 to look up an existing entry. Enter 0 to quit.
>>> 2
What is the food?
>>> Baked Potato
The Baked Potato verdict: a little bland
Hints and Notes:
Your program only needs to store this information while it's running. In other words, you don't need to save any information to file, and it's fine if your Taste Journal dictionary is blank to start
If a user enters an existing food in the entry option, then you should update that food's flavor with the new entry. After all, some foods grow on us.
Requirements:
You must use a dictionary to store your foods and flavor reviews
Your program must run until the user chooses to exit.
Users should be able to add food/flavor combinations and look up those combinations.