At Westonci.ca, we make it easy for you to get the answers you need from a community of knowledgeable individuals. Join our platform to connect with experts ready to provide precise answers to your questions in different areas. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

Python question 4.2: Question 2

Python Question 42 Question 2 class=

Sagot :

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