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

what is the majority religion in the united states?
name the type of subunits that form amylase
Do you think it is important to spend time with the elderly?Why Or Why Not?
Now, it’s time to put everything together to write about your stay in Mexico. Write a paragraph of at least 10 sentences in Spanish about your stay in the city
solve number two thanksd
what country is the worlds leading grower and exporter of bananas
The word heterotroph means “other-feeder” or _____________. a makes its own energy b must rely on other organisms for energy c able to make its own food
List the six external parts of a computer system and identify which are output and which are input devices.
10 gallons equals how many liters
explain two reasons why the defeat of the spanish armada was an important historical event.