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

Tucker and titus are partners who share income in the ratio of 3:1. their capital balances are $40,000 and $60,000, respectively. income summary has a credit ba
Why is it important for the president and congress to work together?
You are asked to determine the density of a liquid. What lab equipment is most helpful to find density of the liquid?
the domain of 4x2 – 1 6x – 18
The best way to destroy harmful germs that may be present in meat is to:
Fear of which power caused western european liberals to support the crimean war?
Sprains and strains are common fitness injuries. Which of the following could be considered a sprain?
The basal surface of most epithelial tissues is attached to a ____________ membrane, a specialized type of extracellular material secreted by epithelial and con
Beowulf which part is most clearly the rising action
___ place limitations on congress when bit comes to the rights of citizens