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

10 gallons divided by 17 people
what is 1 5/8 +4 7/8 show work
(01.03 MC)How did the Muslim culture expand so rapidly?
A rising sense of nationalism in China was a reaction to what? a. the inability of Cixi to accept foreign ideas. b. the strong foreign influence in China. c. th
The infinitive is the most versatile verb form because it can be used as
what characteristics do tragric heroes share?
what is 8.5% written as a fraction in simplest form
Which of the following is a true difference between prokaryotic and eukaryotic cells? a. Eukaryotic cells have true nuclei. b. Eukaryotic cells are smaller. c.
Should secret wiretapping be legal
Which of the following measures will help avoid undue eyestrain? reading with adequate light watching television from as far away as possible taking breaks when