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

Multiplying a number by 9 and subtracting 6 is 16 less than twice the number. Find the number.
voolume for r=6in h=10in cylinder
4. Ethan had 5/6 of a library book, and he returned 2/6 of it. How much of the book does he have left?​
Represent the following in extensive game format: A diplomat can choose to summon a terrorist his country is sponsoring to a meeting, or not. If he does not, an
When listing the levels of organization in organisms from least complex to most complex, which level is just below organs in complexity? O cell organism organ s
if the voltage of a circuit increases the temperature will_________
help would be very appreciated
The rate of diffusion increases if
Which one is the negative form of 'I always support him."
June has $1.95 in dimes and nickles. She has a total of 28 coins. How many of each type of coin does she have?