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
STALIN [3.7K]
3 years ago
10

Write a loop that continually asks the user what food the user has in their refrigerator until the user enters apples, in which

case the loop ends. It should acknowledge the user in the following format. For the first food, the user might say "hamburger," so your response would be, "You have a hamburger with a total of 1 food(s) if they enter hamburger, and so on until they enter “apples” at which point the loop ends. ---- make sure you save your file as "may28.py" *
Computers and Technology
1 answer:
almond37 [142]3 years ago
7 0

(Disclaimer: I am not a professional, so it might not be the most concise answer possible, but I did run the Python script and it works)

Answer:

user_input = input("What food do you have in your refrigerator? ").lower()

count = 0

while True:

   if user_input != 'apples':

       count += 1

       print(f'You have a {user_input} with a total of {count} food(s)\n')

       user_input = input("What food do you have in your refrigerator? ")

   else:

       break

You might be interested in
Suppose there are two ISPs providing WiFi service in a café. Each ISP operates its own AP and has its own IP address block. If b
Alinara [238K]

Answer:

As a design rule, access points within range of each other should be set to channel frequencies with minimal signal overlap. Users will find that roaming doesn’t work well, and performance will degrade because of interference between access points.

Explanation:

8 0
3 years ago
What is a benefit of using client/server network?
ANTONII [103]

The answer is centralization

A client-server network is a server which acts as one powerful computer that provides information to other sub-ordinate workstations called the client. The biggest benefit of this setup is centralization or the central management of the server. Only a single server functions as a host that all clients request and use. Having a single centrally managed server is cost effective and is easily manageable. This centralized control can also be used to deploy processes, allocate user resources and delegate access permissions easily and effectively.

3 0
3 years ago
Read 2 more answers
A microwave is the only electric device in a 120-volt circuit. If the circuit has 7. 5 amps of current, what is the electric pow
sergij07 [2.7K]

The only electric appliance in a 120-volt circuit is a microwave. If the circuit has a 7. 5 amp current, the microwave's electric output is 900 watts.

<h3>Explain about the microwave's electric output?</h3>

As was previously said, 1000W is the most common microwave wattage . The real power usage of a 1000W microwave, or its average input wattage, is 1402.7W. In a microwave, it is always more important to pay attention to the input wattage than the output wattage.

The energy that can be used in a microwave to heat and cook food is represented by this number. Typically, the power output is expressed in Watts, for example, 900 Watts. The appliance's whole wattage consumption used to produce microwave energy is the input.

A microwave can consume anywhere from 600 to 1,000 watts (W) of power. When connected to a 120-volt outlet, microwaves draw roughly 10 amps. The largest influence on how much electricity your microwave uses over time is how frequently you use it.

To learn more about microwave's electric output refer to:

brainly.com/question/13943474

#SPJ4

4 0
1 year ago
Horizontal scaling of client/server architecture means _____.
aalyn [17]
<span>Horizontal scaling of client/server architecture means that more machines or more client workstation are added in the network. The impact on the network should be small and negligible. 
Vertical scaling on the other hand means that more power (processing units) are added in the network. </span>
4 0
3 years ago
(08.02 LC)<br> It is appropriate to leave sections of an application blank.<br> O True<br> O False
Oksi-84 [34.3K]

Explanation:

it is false because it is not appropriate

5 0
2 years ago
Read 2 more answers
Other questions:
  • The concept that allows certain professions to use copyrighted material without permission in their work is called _____.
    14·1 answer
  • What is a benefit of peer-to-peer networking?
    14·2 answers
  • When the increment or decrement operator is placed before the operand (or to the operand's left), the operator is being used in
    6·1 answer
  • I have six nuts and six bolts. Exactly one nut goes with each bolt. The nuts are all different sizes, but it’s hard to compare t
    12·1 answer
  • What may happen if a large number of computer users are attempting to access a web site at the same time that you are?
    14·1 answer
  • How many possible keys does the playfair cipher have? an approximate power of 2
    14·1 answer
  • The larget social networking site to date is
    7·1 answer
  • The readline method reads text until an end of line symbol is encountered, how is an end of line character represented
    14·1 answer
  • The ____ attribute can be used only with input boxes that store text. Group of answer choices type pattern required value
    9·1 answer
  • What goes in between the &lt; &gt; when declaring a new ArrayList?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!