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

A playground merry-go-round with a radius of 1.80 m has a mass of 120 kg and is rotating with an angular speed of 0.400 rev/s. What is its angular speed after a
Which two points on the number line represent numbers that can be combined to make zero? C
i need help plsss n ty​
Which demonstrates the BEST revision of the sentence? The soccer coach bought all new uniforms for the team and then he bought all new soccer balls and new nets
L. - (6x - 5) = -6x +13​
the bottom of a ladder must be placed 7 ft from a wall the ladder 19 feet how far above the ground dose ladder touch the wall
a store sells two different brands of lemonade mix. for brand a 1/2 cup if mix makes a pitcher. for brand b 1/4 cup of mix makes a pitcher. the container for br
help me find the answer to this problem
ASAP PLS HELP ME :( or I’m gonna fail spanish
a train can travel 39.3 miles per hour at this speed about how far can the train travel in 6.5 hours