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
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
Math,
17 hours ago
English,
17 hours ago
Physics,
17 hours ago
Biology,
1 day ago
Biology,
1 day ago
Computer Science,
8 months ago
Social Sciences,
8 months ago