Welcome to Westonci.ca, where your questions are met with accurate answers from a community of experts and enthusiasts. Join our platform to connect with experts ready to provide precise answers to your questions in various areas. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

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?”

Sagot :

fichoh

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