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

Which of these tables represents a linear function? A 2-column table with 4 rows. Column 1 is labeled x with entries 3, 4, 5, 6. Column 2 is labeled y with entr
Do shrimp follow the Carnegie stages of development?
What is being a global citizen
16. What are some of the benefits presidents receive other than their salary? What are the bad things that come along with the presidency?
The population of a small town in central Florida has shown a linear decline in the years 2002-2012. In 2002 the population was 34200 people. In 2012 it was 293
The study of how living organisms interact with each other and with their environment is
The last leader of South Vietnam was _____.
PLEASE I NEED HELP WITH THIS LAST PROJECT!!!!!! 1. How do the physical properties of the slime differ from the physical properties of the glue and borax alone?
Add the Polynomials. (7x2 + 3x - 11) and (3x2 - 9x +5) 10x^2-6X-6 6X-6 12x 13X-6
whats 12348/12 i dont know what is it!