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

What's 5 divided by x squared explain
Forget the motor When im on the boat Think of the best time To buy a new coat What am I......?
Factor the expression. If the expression cannot be factored, say so.
a lunch bill including tax, is divided among you and 5 friends. everyone pays less than $8.75. write and solve an inequality that describes the total amount of
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
What all the multiples of 81?
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
Does an owl have a backbone?
Forget the motor When im on the boat Think of the best time To buy a new coat What am I......?
What's 5 divided by x squared explain