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 lesson did Walter younger learn in the story raisin in the sun with text evidence?
what do you think some people were exempt from military service during World War 1
Need some help on this please
Maria solve the equation 34 equals X +19 although her final answer was correct she could’ve found it in a simpler way what is best explains why
Help me please!!! Number 8
Write a paragraph on KERALA FLOOD.
How does Executive Order 9066 affect Japanese Americans?
what is an adjective Read this extract about a dog named Buck.Buck did not read the newspapers, or he would have known that troublewas brewing, not alone for hi
7x to the fourth power- 5x to the fourth power in combing like terms
Does trading two cookies for two granola bars show a gain from trade