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

solve 2/3 + 1/4x = 1/3
The entire region of Northern Africa and southwest Asia has a climate generally described as?
Terri's teacher gives her the equation 3(5)^x=127-2x, and tells her that she will not know how to solve it algebraically. Explain how Terri could use a graph to
FACTORIZE. 9x2y-24xy2-16y3 solve it
Please tell me five slogans on conservation of natural vegetation.
The diameter of your bicycle wheel is 25 inches. How far will you move in one turn of your wheel?
The Radius of a sphere is 5 feet. find the area of the great circle of this sphere
The neolithic revolution is most closely associated with....
Which of the following rivers is the world's busiest waterway ?
Terri's teacher gives her the equation 3(5)^x=127-2x, and tells her that she will not know how to solve it algebraically. Explain how Terri could use a graph to