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 the formula for the indicated variable (b=rw+r,for w  sollution w=____)
How many people could read in France in 2000, 2001, 2002, 2013?
Which object would best be identified by a periodic Doppler shift in a star's spectrum along with a dip in the stars light intensity? a black hole a nebula a co
a spinner is divided into 8 equal sections. 5 sections are red and 3 are green. if the spinner is spun 3 times, what is the probability that it lands on red exa
Why is living important
what are the effects of boiling sulfuric acid?
Someone please help me : evaluate 3st to the second power + 2s if s=5 and t=3??
solve the formula for the indicated variable  c=yt+y,for t (the solution is t=___)
If y^8 = 4 and y^7 = 3/x, what is the value of y in terms of x? (A) 4x/3 (B) 3x/4 (C) 4/x (D) x/4 (E) 12/x
What are some behavioral adaptations for a porcupines?