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

Which nation was especially worried about Japan’s victory in the Sino-Japanese War?
Susan Constant was an?
how did the loyalists and patriots differ on the issue of independence for the colonies?
Write a comparison sentence to represent this equation 6x7=42
On Tuesday Shanice bought five hats. On Wednesday half of all the hats that she had were destroyed. On Thursday there were only 17 left. How many did she have o
Which best describes how sediment forms?
How can you write 72+(8+19) to make it easier to add
Relate the statement you can't get something for nothing to the law of conservation of mass
Jobs in the skilled labor category require what?
The __________ nervous system controls body functions that do not require thought.