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

Choose the sentence with correct grammar spelling etc. (Must give explanation)
What kind of solution is this? Prove it. 3+8x=8x+3 3=3 0=0
The number of newly reported crime cases in a county in New York State is shown in the accompanying table, where x represents the number of years since 2008, an
On a number line, the distance between x and 8 is 2 units. Which equation can be used to determine the possible values for x? ​2−|x|=8​ ​|8−x|=2​ ​​|2−x|=8​ ​8−
Lincoln's main goal at the beginning of the Civil War was: a To stop the succession of the southern states and stop the spread of slavery. b To stop the succe
its not c for plato either
What was happening with Buck’s feet? What was the solution? Why did this happen to Buck only?
Help please!!!!!!!!!!!!!!!
Help with this I’m not good at math pleas
Express the fractions as equivalent decimals: b. 2/5