nobodydml
nobodydml nobodydml
  • 03-01-2022
  • Computers and Technology
contestada

Python question 4.2: Question 2

Python question 42 Question 2 class=

Respuesta :

aayu0302
aayu0302 aayu0302
  • 03-01-2022

Answer:

n=1

while True:  

   i=input("What pet do you have? ")

   if i=="rock":

       break

   else:

       print("You have a " + i + " with a total of " + str(n) + " pet(s)")

       n=n+1

Answer Link

Otras preguntas

_ is the way you respond to yourself during your exercise
Which type of expression deals with the unique sound of a person singing? timbre legato dynamics articulation
Which of the following are examples of indirect characterization of a main character? Select all that apply. 1.) what the main character says 2.) the thoughts o
Many people who supported anti-immigrant movements came from families who had immigrated to America only one or two generations earlier. Why then do you think
Your health and safety are very important to colleges, which is why your _____ is included on your transcripts. A. height and weight B. immunization recor
Which is a factor of 4x2 + 36x + 72? x + 9 x − 6 x + 3 x + 2
When a horse’s ears are laid back, or flattened backward, what is this an indicator of?
The Robin hood ballads were likely popular because
What is the word "to call on god to witness that we are speaking the truth"?
During the rule of the Directory, Napoleon Bonaparte attempted to attack France's enemy_____ by invading_____. Prussia, the Netherlands Britain, Egypt Austria,