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

HELP !!!!!!MEEEEEEEEEEEE!!!!!!!!!!
PLEASE HELP ILL MARK BRAINLIEST It’s midnight and you are never going to finish all of your homework. You write to your administrator to express you concern and
what could be some ethos, pathos, and logos examples in this photo?
Solve the equation 3/4x-5=x
which situation is an example of internal conflict.
Which is the simplified form of the expression 3(7/5x+ 4) – 2( 3/2- 5/4)
Johnny has a computer repair businesss and he needs to make at least $475 a day to remain in business. He charges an initial fee of $100, and $75 for each hour
Help me with this math problem, I need someone to guide me through it I don’t understand what I’m supposed to do first
The fat boy thinks they should have a meeting. Is Ralph interested? What does Ralph think is going to happen to them?
what value must be known if the accuracy of an experiment is to be determined​