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

A rancher needs to enclose two adjacent rectangularâ corrals, one for cattle and one for sheep. if the river forms one side of the corrals and 180 yd of fencing
C3H2N, 208.19 g/mol chemical formula?
Egyptians used a different alphabet than people from Mesopotamia. Identify and describe the alphabets used by both ancient civilizations.
What is the term for the portion of the earth's atmosphere, hydrosphere, and geosphere where life is found?
Simplify i12 -1 -i i 1
A refrigerator has a volume given by the trinomial y^3 + 5y^2 – 14y. What are the possible dimensions of the refrigerator? Use factoring
Trygg has 3/4 package of marigold seeds. He plants 1/6 of those seeds in his garden and divides the rest equally into 10 flower pots. What fraction of a packe
Gillian can spend up to $300 buying both cotton shirts and wool shirts for her club. The cotton shirts cost $15 each and the wool shirts cost $20 each. The numb
What type of lava flows from a shield volcano
0.009 is 1/10 of which decimal