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 is the numerator or denominator of 4/5
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
What are two different ways to describe and label the layers of the Earth?
Solving systems by elimination: 2x + 4y = -4 3x + 5y = -3 Please show me your work so I can do the rest myself. Thanks!
When was World War I?
What are two different ways to describe and label the layers of the Earth?
What two major processes are involved in the oxygen cycle?
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
Was the Gold Rush a good or bad thing for the United States?
A 1 digit number and a 3 digit number have a sum of 205.  The same two number have a difference of 195, a product of 1,000 and a quotient of 40.  What are the t