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

PLEASE HELP! In a preschool center are there any hazards for children getting in or out of the car. This should be detailed.
What is the solution set of the following equation? -8x + x + 15 = -7x + 12
Which of the following correctly orders the investments from LOWER risk to HIGHER risk?
The renaissance encouraged people to do what
Which best explains why changes to the atomic theory were necessary? (2 points) Question 2 options: 1) differing ideas 2) new experimental evidence 3) better
The area of a circle is found with the formula A= where 3.14 represents 3.14. If a tile artist is laying down tiles in a circular mosaic pattern and the area o
Which of the chronologies below best represents a transition towards civilization
Organisms that live in the tundra biome have developed unique adaptations that aid in their survival. Which of the following adaptations is not seen in the tund
Simplify the expression. 7(3x + 5y) + 4y
Of the 125 guests invited to a wedding, 104 attended. What percent of the invited guests attended?