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

While on vacation, the Jacobson family drove 312.8 miles the first day, 177.2 miles the second day, and 209 miles the third day. About how many miles did they t
How many factors of 1296 are c perfect squares?
What is the name given to the experimental apparatus for generating electricity?
bulimia nervosa cannot be prevented, but it can be treated if diagnosed early
Imprisonment for a first DUI conviction is not more than ___
Which of these could be a reason why teens are more easily addicted to tobacco than adults? Teens naturally have higher amounts of dopamine than adults. Acetal
slove for x: x+1/3=1/4
Suppose that you are trying to improve your pronunciation of french by listening to french popular songs. you try to imitate the french pronunciation at the sam
Maintaining at least a 1-second space margin from the vehicle in front of you not only provides you with visibility, time, and space to help avoid rear-end cras
Wide receivers typically are taller. A.misplaced modifier B.dangling modifier Cfaulty predication D.incomplete comparison