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

3.56x+7.56+9.12+50.85 solve for x
. List two sites below that give you a credit report ... But you have to pay for them
A taxpayer filing single, age 32, will have a filing requirement if their gross income is at least which amount? $12,000 $12,200 $18,000 $18,350
I need help solving this problem...On how to find lateral area.Ill give points and brainless​
who were some Oppressors in Elie Wiesel's life
Order the following list of functions by the big-Oh notation. Group together those functions that are big θ of one another.6nlogn 2^100 loglogn l
What solutions would you propose to a town that suffers extensive damage from seasonal flooding?
Margarite is building 3 prototypes of a robot she designed. Each robot includes a body and a remote control. She needs 450 inches of wire for each body and 120
Bob has in his pocket a number of pennies, five times as many nickles as pennies, and 6 more quarters than pennies. the coins amount to a value of $2.52. find t
In the event of an emergency, what partners does GOHSEP work with to achieve its goals