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

44 year-old male with biplanar deformity, acquired limb length discrepancies and tibial nonunion has undergone deformity correction. He now requires exchange of
10,825.643 which digit is in the tenths place​
A programmer plans to develop a new software system. In planning for the operating system that he will use, he needs to estimate the percentage of computers tha
At the end of the year, a library reported 32 books lost or stolen and 24 books were sent out for repair. If the library originally had 1,219 books, how many we
Sam bought brushes for $8, a palette for $5, and oil paints for $15. He paid $29.82 in all. What sale-tax rate did Sam pay?
Question 6 of 102 PointsWhat is the term for a short statement about history that has not yet beenproved?​
Did secession, in your opinion, have little to do with a rational assessment of alternatives?
3Q + 4T = 26. P=2T=3Q l. What is 6P? The answer is 52 but I don’t understand how they got this answer
What does it mean if a company has a debt ratio of 101.5%?
find the average speed of a car that goes 80 miles in 3 hours.