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

In the field of legal research, a "citation" is: a. the location of a trial court or court of original jurisdiction b. a reference to a publication in which a l
Use the mass spectrum of rubidium to determine the atomic mass of rubidium.
What is the volume of a rock with a density of 3.00 g/cm3 and a mass of 600g?
What's the answer to 2x-4y=20? Solve the literal equation for y.
—¿Qué es esto? —_____. A. Estoy bien, gracias B. Está debajo de la mesa C. Es un disquete D. En la papelera
What is the difference between Spring Water and Alkaline water ?
Which three pigs are responsible for elaborating Old Major's teachings into animalism ?
When a substance changes its state, all BUT ONE of these statements is true. That is A) Mass remains constant. B) Only the form changes. C) Kinetic energy ch
The product of 9 and a number t
Four interventions that the South African government employs to deal with environmental degradation