nobodydml
nobodydml nobodydml
  • 03-01-2022
  • Computers and Technology
contestada

Python question 4.2: Question 2

Python question 42 Question 2 class=

Respuesta :

aayu0302
aayu0302 aayu0302
  • 03-01-2022

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

Answer Link

Otras preguntas

Why were the members of the third estate dissatisfied.
4х + Зу = 3 4x - 2y = 18 How to solve this?
Identify the correct track event distances 100m 200m 300m 400m helpp pleas
please please helppppppppp
A box has the shape of a rectangular prism with height 32 cm. If the height is increased by 0.4 ​cm, by how much does the surface area of the box​ increase?
Southwest Asia and South Asia has many problems, choose one country and give one problem that the country has.
Tennis balls are sold in cylinders. Each cylinder has a height of about 22cm and a diameter of about 7cm. Estimate the volume of the cylinder.
please answer the following question down below. (25 points)
Help me please Earth and space
Which of the following is not a specific adaptation? A. Sensitive sense of smell. B. Sharp teeth that are constantly replaced. C. Fins for stability. D. Sense o