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 Persians major holidays
Write a description of an array of stickers using the product of 3 x 15.
water stations will be placed every 600 meters of a fifteen kilometer race. how many water stations will be needed?
Write a paragraph comparing the organelles in a cell to the organs in your body
Monica reads 7 and 1 half pages of a book in 89 minutes. What is her average reading rate in pages per minute?
Which of these statements about neutrons is true? a. Neutrons travel around the nucleus of an atom. b. A neutron has no charge. c. Neutrons have less mass th
order least to greatest 0.5, 3/16, 0.75, 5/48
A class has 6 boys and 15 girls, what is the ratio of boys to girls?
Write each number in scientific notation, please. For 15 points! 1. 58,927 2. 1,304,000,000 3. 6,730,000 4. 13,300 5. 97,700,000,000,000,000,000,000 6. 384,000
Find the value 9x10^4