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 does the term sinewy MOST closely mean?
What is the fraction 15/20 in its simplest form
Theo needs to measure 3/4 cups of water. He has a 1/8 cup measuring cup. How many 1/8 cups are in 3/4 cup?
Your auto insurance policy has a $200 monthly premium and $700 deductible. What is the maximum amount you will have to pay out-of-pocket for a car accident befo
Help with 5 questions pleaseeee 1. Which statement correctly describes the relationship between the graph of f(x) = 2x and the graph of g(x) = f(x) - 4? Questio
Which of the following statements is true? A. Lithification is the formation of igneous rock from sedimentary rock. B. The rock cycle is powered by the movement
what is 14 9/100 as a decimal
A room in the shape of a rectangular prism measures 15 feet by xx feet by 12 feet. Write a simplified expression for the volume (in cubic feet) of the room. Vol
what organisms appeared on Earth First?a). gastropodsb). horn coralsc). brachiopodsd). crinoids
Which substance must be present for cellular respiration to take place?