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" *

Answers

Answer 1

(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


Related Questions

how to prevent water pollution​

Answers

Answer:

Here is your answer

Explanation:

1. pick up litter and throw it away in a garbage can.

2. use environmentally household products such as washing powder, household cleaning agents

3. wash your car or outdoor equipment where it can flow to a gravel or grassed area instead of a street.

4. don't throw waste at ocean it will harm the animals and create tocsin.

17.35 ma of current is flowing though a brown-red-brown resistor,what is v

Answers

Answer:

2.1V

Explanation:

brown-red-brown = 120Ω

V = I·R = 17.35 · 120 = 2.082V

However, the tolerance of the resistor is at least 10%, so you can't express the voltage that accurate.

To prevent certain columns from being displayed when printing a worksheet, _______ the columns.

erase
hide
highlight
remove

Answers

Hide I believe!!!!!!
To prevent certain columns from being displayed when printing a worksheet, HIDE the columns.

The size (number of bytes) of a structure-type variable can be changed by the following factors. Select all that apply. Group of answer choices changing the orders of the members in the structure. adding a member into the structure. changing an int-type variable to a pointer-type variable. changing the computer from a 32-bit to a 64-bit processor.

Answers

Answer:

A, B, and D

Explanation:

Considering the available options, the size (number of bytes) of a structure-type variable can be changed by the following factors:

A. changing the orders of the members in the structure.

B. adding a member into the structure.

D. changing the computer from a 32-bit to a 64-bit processor.

benefits of Internet as method of information transmission​

Answers

Answer:

The Internet enables effective global communication around the world and has changed the way people socialize and consume media via social networks, and has facilitated teleworking, distance learning and e-learning. The Internet has given rise to new e-commerce companies and industries, and knocked out other traditional players, but also contributed to the development of the IT bubble and burst at the turn of the millennium. To counter piracy of music and movies over the internet, new streaming services have been developed since the 00's and cut out distribution lines. Web magazines and social media have competed with many traditional media, especially the local press, and reduced the labor market for journalists. Social media may have been a tool (but not a catalyst) for revolutions such as the Arab Spring and of significance for an explosive increase in the spread of fake news and misinformation since the 2000s. Social media is believed to have had an impact on election results, but it is debatable whether fake news has had it.

I copied my friend's homework... give me some excuses to get out of it!! ​

Answers

Answer:

Tell the teacher that you will pee in her coffee cup if they don't forget about what you did

Explanation:

Answer:

Explanation:

Depends on the homework, but

"We worked together on it and came to similar conclusions."

"We checked answers with each other when we finished to make sure we got the problems correct and did the problems correctly."

What are the uses of DVD Ram​

Answers

Answer:

Like ordinary random access memory (RAM), it can be repeatedly read, written to, and erased. Intended mostly for removable computer storage, DVD-RAM provides the capabilities of Rewriteable CD (CD-RW) - users can run programs from the discs, copy files to them and rewrite or delete them.

DVD Ram Like ordinary random access memory (RAM), it can be repeatedly read, written to, and erased. Intended mostly for removable computer storage, DVD-RAM provides the capabilities of Rewriteable CD (CD-RW) - users can run programs from the discs, copy files to them and rewrite or delete them.

it is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together​

Answers

Answer:

Cable ties

Explanation:

Used to bundle cables neatly inside and outside of a computer. It is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together.

>3

[tex]\boxed{Parts\: organizer}[/tex] is used to hold screws, jumpers, fasteners, and other small parts and prevent them from getting mixed together.

[tex]\bold{ \green{ \star{ \orange{Mystique35}}}}⋆[/tex]

A current divider is to be designed using a 2mA DC current source and 1K resistors, the specification that the current is 1.5mA.

Answers

Answer:

The solution of the given query is described below throughout the explanation segment.

Explanation:

Given:

DC current,

= 2mA

Resistors,

= 1K

According to the question,

⇒ [tex]i=\frac{(1K+1K+1K)\times 2mA}{1K+1K+1K+1K}[/tex]

⇒   [tex]= \frac{3}{4}\times2mA[/tex]

⇒   [tex]=1.5mA[/tex]  

_________________________ are people, places, and materials, either printed or non-printed, that can provide answers to inquiries.

Answers

Answer:

Information/knowledge resources

Explanation:

The process of looking for answers to questions that will lead to improved knowledge about a subject is known as an inquiry. The theories of enquiry includes abduction, induction, and deduction

An inquiry can provide the reasoning behind observation by making use of the theories of inquiry and sources that provide answers (information) about the (interrelated) events of the inquiry

Therefore, information and knowledge resources are the people, materials, and places, which can be in the printed, verbal, appearance form that have the capacity to proffer answers to inquiries

help,any question answer​

Answers

Answer:

true

false

true

true

Explanation:

I took the paper

What is Adobe Dreamweaver ? What is it used for ? Name and describe its major components and features in detail​

Answers

Answer:

Part A

Adobe Dreamweaver is a computer application used for building websites and other types of web development, as well as mobile content development for both the intranet and the internet, on the Apple OS X and Windows Operating System Platforms

Part B

Adobe Dreamweaver is used for designing, building, and coding websites and mobile contents by developers and designers and by mobile content developers

Part C

i) Adobe Dreamweaver allows rapid flexible development of websites

The simplified engine on which Adobe Dreamweaver is based makes it easy to adapt web standards including CSS, and HTML for personalized web projects, thereby aiding learning of the web standards and fast (timely) web development

ii) The time between starting development and deployment is shorter when using Adobe Dreamweaver due to the availability of customizable templates that serve wide range of user web interfaces, including e-commerce pages, newsletters, emails and blogs

iii) Building of websites that adapts to the screen size of the device from where the site is accessed is possible with Adobe Dreamweaver

Explanation:

What is a benefit of using a client/server network?
Cheap to maintain
Easy to install
Has a central, powerful computer
Unable to share files

Answers

Answer:

Has a central powerful computer

Explanation:

When operating a client - server network, a certain access mediun is created such that clients can access information, materials and services from a central computer, this poses great advantage in the area of security and control. Clients would be able to gain access from this central computer using either a local or wide area network. The accessibility provided through this powerful, central computer allows the the network to monitor what actions are being performed and make appropriate restrictions on the network, hence, preventing the invasion of malware and viruses. Hence, the central control is a great feature of a client - server network.

write an algorithm to find perimeter of circle​

Answers

It is usually called the circumference of a circle, not a perimeter.

For a circle with radius r, the formula for the circumference C is

=2

Answer:

Explanation:

Algorithm:

step 1 : Start

step 2 : Read r

step 3 : POC = 2*22/7 *r                   POC = perimeter of circle

step 4 : display POC

step 5 : Stop

What is market information?

please answer in your own words since my teacher will probably notice if I plagerize

Answers

Answer:

Market information is is the understanding of the trends going on in a market such as demographic popular product age interests things like that

Explanation:

write a program to enter RADIUS of a CIRCLE and PRINT AREA of TRIANGLE using Q Basic. (class 8)​

Answers

Answer:

The program is as follows:

10 INPUT RADIUS, BASE, HEIGHT

20 CIRCLE = 3.142* RADIUS * RADIUS

30 TRIANGLE = 0.5* BASE * HEIGHT

40 PRINT CIRCLE

50 PRINT TRIANGLE

60 STOP

Explanation:

The program description doesn't tally;

In other words, it is impossible to calculate the area of a triangle using the radius of a circle.

So, I designed the program to get input for radius, base and height.

Get input for radius, base and height

10 INPUT RADIUS, BASE, HEIGHT

Calculate area of circle

20 CIRCLE = 3.142* RADIUS * RADIUS

Calculate area of triangle

30 TRIANGLE = 0.5* BASE * HEIGHT

Print area of circle

40 PRINT CIRCLE

Print area of triangle

50 PRINT TRIANGLE

End of program

60 STOP

Name the function for output in python.

Answers

Answer:

We use the print() function to output data to the standard output device (screen). We can also output data to a file, but this will be discussed later. An example of its use is given below.

Answer:print()

Explanation:As said above. Print is what we use in python (:

Use the ________ predefined formats to quickly format cells.

Style Formats
Cell Styles
Cell Definitions
Cell Formats

Answers

Cell formats because I took it aboit 5 times and that was the answer so yeah

Answer:

I think choose (2)

Cell styles

You provide desktop support for a small company. The company has two locations in the same city, but they are several miles away. You get a call from a user who is having problems installing a new device. You try to tell the user how to update the driver for the device over the phone, but he is having a hard time understanding your directions and is becoming frustrated.
What should you do?
A. Tell the user to wait until you are scheduled to be in that location.
B. Escalate the call to another technician or your supervisor.
C. Drive to the other location as soon as possible and update the driver.
D. Establish a Remote Desktop connection and update the driver.

Answers

Answer:

The answer is "Option D".

Explanation:

It is a desktop platform that helps a "client" computer can join from a remote location to a "host" computer. Clients can then manage and then use apps and files anywhere on network protocols.

This technology enables users to link from the remote location to a specific machine as if they were sitting beside it. Once this connection is established, users can carry out a variety of tasks as if they actually use the computer directly.

The cultivation in mountain areas, with their scattered plots of usable land at various altitudes with different climates, landscapes and little margin for mechanization, are managed by family farms in the most efficient and effective way.

Answers

Answer:

Mountain farming

Explanation:

Mountain farming is done in hilly areas of the mountains. It is mainly family farming. The mountain farming is mainly done in the mountains where the paddy fields are scattered and the limited use of the usable lands are available.

It is cultivated in different types of climatic conditions or landscapes with limited use of mechanization or machines. The mountain farming is maintained by the family farms in an effective way.

True or False: Microsoft Publisher allows you to click and drag an element anywhere on the page.

Answers

Answer:

True

Explanation:

can you plz answer me from the photo​

Answers

A. True
B. False
C. True

how is a trade off best described ?

dilema
compromise
demand
complication

Answers

I think the answer is compromise <3

A Python keyword ______________.

can be user defined

cannot be used outside of its intended purpose

can only be used in the comments section

can be used anywhere in a Python program

Answers

Answer:

cannot be used outside of its intended purpose.

Explanation:

In many programming languages, keywords are special and reserved words that are used for specific and specified purposes. They have special meanings and cannot be used outside their intended purposes.

Keywords cannot be used as variable names, identifiers or functions.

In Python, some of such keywords include;

i. True

ii. False

iii. for

iv. while

v. break

vi. continue

vii. if

viii. else

ix. def

x. pass

If you see rough patches, loose,gravel,or potholes on the road you should

Answers

Answer:

move out of the way

Explanation:

Drive around them in the safest way as possible. if that is not an option then turn around in a nearby parking lot of some sort and take another road to your destination

Investigate the many ways that hardware and software can cause an interrupt to occur. Are ALL interrupts treated equally or do some have priority over others?​

Answers

Answer:

Following are the responses to the given question:  

Explanation:

This list is based mostly on the processor. Then you'll be ordered. An interrupt of a particular cable (wire) is produced for PC-ish CPUs (IRQ 0 - 31 for some intel processors). The bigger challenge is a lower number.

Strange factors have included a system clock, power business, 0, some reserved for use by CPU testing, serial/parallel/... ports and also some terminated/error/state/new devices requests device Thus a key touch on the keyboards could create an interrupt that was direct on old devices.

>What is the output of the following code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]
print (list1[1] )

Answers

Answer:

Given code output is "786".

Explanation:

Code:

list1 = [ 'cyber', 786 , 2.23, 'square', 70.2 ]#defining a list list1 that holds value in parameter

print (list1[1] )#use a print method that prints list index value

In the given code a list "list1" is declared that holds value in it and in the next step a print method is declared that prints the first index value of the list.

Tin học đã làm thay đổi công tác văn phòng ngày nay như thế nào?

Answers

Công nghệ đã thay đổi cách mọi người sử dụng để giao tiếp ở nơi làm việc hiện đại

Which is an example of a table style option?

O banded columns

O shading

O borders

O pen color

PLEASE HELP ASAP

Answers

Which is an example of a table style option?

O banded columns

[tex]\large\mathfrak{{\pmb{\underline{\orange{Mystique35 }}{\orange{❦}}}}}[/tex]

explain why the computer is powerful working tool???​

Answers

Answer:

here ya go

Explanation:

A computer is a powerful tool because it is able to perform the information processing cycle operations (input, process, output, and storage) with amazing speed, reliability, and accuracy; store huge amounts of data and information; and communicate with other computers.

Other Questions
1. EF is (a secant of, tangent to) OX.2. DF is a (chord, locus) of OX.3. AABC is made of (chords in, tangents to) OX.4. ZDEF is an (intercepted arc, inscribed angle) of OX. You move down 2 units and up 8 units. You end at (0, 4). Where did you start? A museum has a model of an Egyptian pyramid. It has a rectangular base that is 10 feet by 8 feet, with a height of 12 feet.What is the volume of the pyramid? Please help needed!!! Help me!!! Select the correct answer.Why are there multiple interpretations of popular storylines that transcend multiple cultures and time periods?OA.These storylines are often relatable and teach valuable lessons.OB.These storylines are often dynamic and can easily be presented in different ways..These storylines are often diverse and represent a variety of character archetypes.ODThese storylines are often unique and catch readers' attention. a. Compound A and compound B are constitutional isomers with molecular formula C3H7Cl. When compound A is treated with sodium methoxide, a substitution reaction predominates. When compound B is treated with sodium methoxide, an elimination rection predominates. Propose structures A and B.b. An unknown compound with molecular formula C6H13Cl is treated with sodium ethoxide to produce 2,3-dimethyl-2-butene as the major product. Identify the structure of the unknown compound. Lauren uses a calculator to find Three-fourths divided by StartFraction 3 plus 9 over 36 EndFraction and gets a result of Nine-fourths. Which statement best describes her work? list out any the similarities betweencommunity and society. Apply the distributive property to factor out the greatest common factor.6+30=6+30=6, plus, 30, equals B(3y + 11)1164y Find the measure of ZA.mZA what is one of the major purposes of the world trade organization? PLS HELP! WILL GIVE BRAINLIEST IF CORRECT!What is the value of P for the following triangular prism?36 cm48.5 cm48 cm36.5 cm The story is called Young Night Require plenty of sleep 1. Which phrase best describes how the article develops the idea presentedin paragraph 2? 5. There is a circular field of area of approximately500 m2. How can you find its area accurately byusing a measuring tape? Click and drag the terms on the left to accurately complete the sentences on the right. Then arrange the sentences in order to accurately describe the process of the embryonic development of the neural tube, a precursor to the brain. Drag the text blocks below into their correct order. The neural plate sinks and its edges thicken, forming a _________neural groove with a raised neural fold along each side. The neuroectoderm appears along the length of the embryo and thickens to form the _______The lumen of the neural tube becomes a fluid-filled space that later develops into of the_______ spinal cord the and the ventricles of the brain. The neural folds then fuse along the midline beginning in the ______neural crest region and progressing toward the nose and tail. A hollow channel called the _______forms, which eventually will grow lateral processes that later form motor nerve fibers.central canal neural tubeneural groove cervical lumbar neural plate A novel contains parallel plots how are these plots similar Why is leadership important in a group or a society Explain how cellular respiration is the opposite reaction to photosynthesis. Choose the CORRECT statements. A standing wave is resulted from the superposition oftwo waves in such a way both waves:I. have the same direction.II. are opposite in direction. III. have the same frequency.IV. have different frequency.V. have the same amplitude.VI. have different amplitudeA. I, III and VB. II. IV and VIC. I, IV and VD. II, III and VE I and III F. Ill and V What is a dept of 24 dollars?