1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
bulgar [2K]
3 years ago
15

Python: Write a program that prompts the user for a meal: breakfast, lunch, or dinner. Then using if statements and else stateme

nts, 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?”
Computers and Technology
1 answer:
Alexeev081 [22]3 years ago
8 0

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 : ')

<em>#prompts</em><em> </em><em>user</em><em> </em><em>to</em><em> </em><em>enter</em><em> </em><em>a</em><em> </em><em>meal</em><em> </em><em>type</em><em> </em>

if meal == 'breakfast' :

<em>#check</em><em> </em><em>if</em><em> </em><em>it's</em><em> </em><em>breakfast</em><em> </em>

print('How about some Avocado')

elif meal == 'lunch' :

<em>#checks</em><em> </em><em>if</em><em> </em><em>it's</em><em> </em><em>lunch</em><em> </em>

print('like some grapes?')

else:

print('would rice be ok?')

<em>A</em><em> </em><em>sample</em><em> </em><em>run</em><em> </em><em>of</em><em> </em><em>the</em><em> </em><em>program</em><em> </em><em>is</em><em> </em><em>attached</em><em>.</em><em> </em>

<em>Learn</em><em> </em><em>more</em><em> </em><em>:</em><em>brainly.com/question/25531734</em>

You might be interested in
Which process best describes how you might prepare to apply for a job?
saveliy_v [14]
Take an online course,or maybe do special trainings,practice and study.
8 0
4 years ago
Read 2 more answers
Various types of mouse pointer<br>​
g100num [7]

Answer:

Text Pointer

Busy Pointer

Link Pointer

Precision Pointer

Standard Pointer

Help Pointer

Background Busy Pointer

4 0
2 years ago
Your mobile device has gone over its subscribed data limit the past two months. During this time, you have noticed that the devi
Zolol [24]

Answer:D. The device needs an operating system update

Explanation:Operating systems are different programs mainly manufactured by software companies like Microsof,Apple etc, after initially installation are loaded into the computer by a boot program, operating systems manages all of the other application programs in a computer, it requires constant upgrade in order to be able to effectively carry out its activities. Application programs uses the operating system by making requests for services through a defined application program interface (API). Examples include Windows 7, Windows 8, Windows 10, Blackberry OS, Operating system Linux etc.

6 0
3 years ago
Which of the following is not a network category based on the geographic dispersion of network components?
barxatty [35]

Answer:B) Wide-Area Network (WAN)

Explanation: WAN(Wide area network)is the network which constitutes a large geographical region.This network consist of the small network unit as well as large network connections.This network does not have the geographic dispersion of the components of networks.

WAN works in geographic region for the dispersion between any two locations. Other options are incorrect because they connect the network components geographically. Thus the correct option is option(B).

7 0
4 years ago
II. MULTIPLE CHOICE (five points each)
seraphim [82]
Jsjajxhuwjakzjwidhwbjrjsbd
6 0
3 years ago
Other questions:
  • Assume that to_the_power_of is a function that expects two integer parameters and returns the value of the first parameter raise
    13·1 answer
  • Which statement correctly describe the FAFSA
    5·2 answers
  • How do you fix this windows 7 screen​
    8·1 answer
  • What social media category allows users to publish content as posts but restricts the size of the post to a certain numbers of c
    8·1 answer
  • p25: File Write and Read1) User enters a file name (such as "myMovies.txt").2) User enters the titles of 4 of their favorite mov
    12·1 answer
  • How many registers are there in the memory unit?
    8·1 answer
  • 1.               Which of the following is smallest?
    6·2 answers
  • Why can it be helpful to perform mathematical calculations using programming? Choose the best answer.
    11·1 answer
  • Which computer peripheral is used when you would like to use a DVD or CD?
    12·2 answers
  • Help ASAP
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!