4.2 code practice question 3
Answers
Answered by
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