Computer Science, asked by amithstarkasco8266, 10 months ago

4.2 code practice question 3

Answers

Answered by firenitesav
19

Answer:

pet=input("What pet do you have? ")

total=0

while(pet!="rock"):

   total=(total+1)

   print("You have a "+pet+" with a total of "+str(total)+" pet(s).")

   pet=input("What pet do you have? ")

Explanation:

sorry it is a late answer lol.

Similar questions