Python: Write a program that prompts the user for a meal: breakfast, lunch, or dinner. Then using if statements and else statements, print the user a message recommending a meal. For example, if the meal was breakfast, you could say something like, “How about some avocado on toast?”

Answer :

The program prompts user for the time of meal they will be having and a suggestion made on their behalf. The program is written in python 3 thus :

meal= input('your meal : ')

#prompts user to enter a meal type

if meal == 'breakfast' :

#check if it's breakfast

print('How about some Avocado')

elif meal == 'lunch' :

#checks if it's lunch

print('like some grapes?')

else:

print('would rice be ok?')

A sample run of the program is attached.

Learn more :https://brainly.com/question/25531734

View image FICHOH