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

true or false: dimensional analysis can give you the numerical value of constants of proportionality that may appear in an algebric expression
Use the image below to answer the following question: Public Domain How did this structure benefit China? (4 points) It was built in the north to protect the
where did tigwa live in
What is the derivative of y=tan(arcsin(x))?
What event caused the tiguas to move to texas? a. the fiesta de san antonio occurred. b. pueblo peoples in new mexico revolted. c. texas officially recognize
FIRST IS BRAINIEST ANSWER FASTTT 10 MIN. ONLY FASTTT FIRST IS BRAINIST ANSWER FASTTT 10 MIN. ONLY FASTTT Describe the historical significance of Hernando de Sot
how are a carrot an amoeba, and a man drill alike?
How do you convert the rectangular coordinates (9, 0) into polar coordinates?
can i please help me I don't understand
which planet has the greatest attraction to the sun?