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 rectangle has an area of 4(x+3) square units. A- If the dimensions of the rectangle are doubled, what is the area of the new rectangle in terms of x? Show y
Emma uses a 250 meter roll of crepe paper to make streamers. How many dekameters of creme paper does emma use?
Explain why applying a vertical translation and then a horizontal translation produces the same result as applying a horizonatal translation and then a vertical
Which powerful religious group often tried to close the theaters in Shakespeare's time? A. the Puritans B. the King's Men C. the Pilgrims D. the Jacobites
Divide the polynomial in the numerator by the trinomial in the denominator m^3-m^2-4m+1 /m^2+2m-3
CAN ANYONE PLEASE HELP WITH MATH? The rectangle has an area of 4(x+3) square units. A- If the dimensions of the rectangle are doubled, what is the area of the n
four yardequal Blank feet
How much money, in dollars, does one mole of nickels represent?
does radiation need a phase of matter to travel with?
what are 2 examples of ionic compound?