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

d Bula drives to work and back every day. One way, the trip is fifty miles. How many miles does she drive in five days?
2+2 Im graduated, so my points are up for grabs cause I’ll never use them
5+2 I’m graduated so my points are up for grabs cause I’ll never use them. I have to at least as a question with it though.
Which decimal below is equivalent to 5/9?
How would ancient astronomers from Silla have observed the movement of stars and other objects compared to astronomers today?
How do you drown a blonde?
can someone help me please with the ixl problem ??? If x < 0 and y < 0, where is the point (x, y) located?
70 POINTS!!!! This is my fourth time asking, PLEASE HElP!!! What is the domain of the following points?(The following points are on the image below) A {-7, 3, 7
solve this equation Thank you!!
What measurement could be the length of a pool?