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

I am sure it......... happen.(will,would,can,could)​
19)You are trying to decide between two apartments to rent. • Apartment A requires a deposit of $2,000 plus a monthly rent of $1,200. • Apartment B requires a d
Gregory keeps school supplies in his locker. He has 24 pencils and 16 erasers. What is the ratio of erasers to pencils in his locker?
not enough INFO sas sss​
help? can someone help
5(x-y)-5(y+x) pls help with this
Which category of people earns the most? A. Hispanic females B. White females C. Hispanic males D. black males
I need help for this question.
help me with this plz​
Complete the paragraph based on what you have learned about different video-storage carriers. What kind of charge are they talking about??? Malcolm is a science