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

jurisprudence supports the idea that law can and should change to meet new developments in society
Adam works as a famous chef for 3 hours two days a week, and 4 hours three days a week. His weekly salary is $549. What is his hourly rate of pay (How much does
a triangle with side lengths 6in... 8in... and 10in plz oh plz help me. like right now
Who wrote "How the Other Half Lives"?
Which map depicts elevation change on earths surface?
what is 7,298,341 rounded to the nearest 10000
each person eats 2/3 of a pound of turkey. how many pounds of turkey will be needed for 8 people
Consider this second-order reaction: (A B C and rate = k[A]2). What will happen to the reaction rate if the concentration of A is doubled?
how did the buddhist religion reach japan?
Write an equation for a circle with a diameter that has end points at (-4,-1) and (-8,-9) round to the nearest tenth if necessary