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

Simplify (7x-5)-(3x-2
write an equation for the linr that is parallel to the given lin and passes through the given point. y=5x+10; (2,14) y=1/5x+4 y=-1/5x-4 y=5x=68 y=5x+4
Initially, settlers in Maryland could elect a representative assembly, but they could not
Which of the following is not a type of galaxy? Random galaxy Irregular galaxy Spiral galaxy Elliptical galaxy
what is standard form of twenty-six and thirty four hundredths
Solve 2.7=x/12 thank you!
. Which quantity might you measure in meters?
Please help i need today now please
sure as there's an 'L' at the end of a Dragon's tail, these three words are at the start of ever scale!
put the correct preposition where necessary pls : 1)...1944 he was sent to live ...his friends...the country2) I was afraid to tell.. him that everybody woul