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

(The giver movie) What are your views about this type of society and would it be one that you would like to live in? Why or why not? Explain
Which three presidents (1850-1860) are considered to be a man the worst in American history (Pick all that apply) Millard Fillmore Franklin Pierce James Pol
Match these to the sentences
New york was once known as New paris
how does ionic radii increase
Solve for X. I don't know how
When a juvenile is charged with a crime, he/sheA)cannot be assigned a lawyer.B)cannot have a parent present.C)does not have to be photographed.D)does not have
Why is it important to keep business messages positive?
Joaquin has hockey practice at the same ice rink where Alton has curling practice. One day, they were both playing on the ice with their equipment. They noticed
what is the answer for this math problem 1\4n + 1 + 1/2 - 5