Computer Science, asked by ykumkum5305, 1 day ago

c = 0 #variable declaration animal1= input("Enter the animal: ") #Read the animal by the user while animal1 != "rock": #iterating the while loop to check the condition c=c+1 #increment of counter variable print("You have a " + animal1 + " with a total of " + str(c) + " pet(s)") #display in the proper format animal1= input("Enter the animal: ") #Read the animal by the user/

Answers

Answered by sanjitpathak865
2

Answer:

c = 0 #variable declaration animal1= input("Enter the animal: ") #Read the animal by the user while animal1 != "rock": #iterating the while loop to check the condition c=c+1 #increment of counter variable print("You have a " + animal1 + " with a total of " + str(c) + " pet(s)") #display in the proper format animal1= input("Enter the animal: ") #Read the animal by the user/

Explanation:

Is these are question? ??

type nicely okAy

Similar questions