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 a synonym for catalogue? Interject List Reduce Remove
Which is a way that biotechnology has Not helped society? Bacteria is used to grow vaccines in large quantities. Drugs can be developed without the use of an
What is the best description of the theme developed by Willa Cather in “A Wagner Matinee"? A. Music has the power to heal all wounds. B. Love is a force that
Jenna is experiencing an increased output of her oil- and sweat-producing glands. what other physiological changes is she probably experiencing at this time
Solve the equation ax + 1 = bx for 'x'. Please be sure to include all steps.
PLEASE HELP (ONLY IF YOU READ THE ALCHEMIST) When the boy is tested at the military encampment, the elements of nature are personified. Why? to show the boy in
A shift from one key to another within the same composition is called
What is the name of the intel technology that allows a processor to handle two threads at the same time?
what does le fleuve qui traverse paris s' appelle mean?
Help!! Image attached, will put most brainliest