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

if Robert buys a candy bar for 78 cents, how much change does he get back from a one-dollar bill?*
Asking an acquaintance directly for job leads is more effective than asking for advice about jobs. true or false
How do I write 100,000+2,000+500+150+17+0.08 in standard form?
Were the French or Spanish explorations more successful? Why?
Natural remedies are usually more effective and safer because they are thoroughly tested.
Anne wants to buy the smallest tree she can find for her apartment. Which set orders tree heights from tallest to shortest? a. {4.2 ft, 1 1/4 yd, 3 ft, 34 in.}
What is the value of the digit 6 in the number 106,534
Round 845,001 to the nearest ten thousand
is melting butter exothermic or endothermic?
620 + 107 round estimate the sum