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

write 540 as a product of prime numbers
what is 54 times 3 times 71 minus 45 plus 102 divided by 6 times 25 subtracted by 34 times 141 plus 32 subtracted by 67? Also put 578402/10856 in simplest form.
How does latitude affect climate
27 devided by 1053 in decimal form like 528.6
How were chariot drivers protected in the Circus Maximus
What is 5.207 as a fraction?
write 540 as a product of prime numbers
What energy is transfomed that takes place you lifting a chair?
what are the factor pairs of 38
What caused Portugal to finallywithdraw from its African colonies?