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

(b) Expand and simplify (x - 3) (2x + 3)(4x + 5)
Failing to __________ appropriately will result in too many employees doing the same work and prevent the new firm from realizing the cost synergies it anticipa
Look at this workplace document. what is the purpose of the numbered list? to explain by order of importance how to maintain workplace safety to explain the spe
why books are better than their movies ​
A type of learning in which a stimulus acquires the capacity to evoke a response that was originally evoked by another stimulus is known as?
Increasing the mean difference between groups will ______ the likelihood of finding a significant p value from a t test
Which is older-rock layer a (an intrusion) or the pieces of rock contained within it?
Best buy trains its sales staff on dell computers as well as on apple computers and also on customer service etiquette. A salesperson at best buy speaking with
Name a line that does not appear to intersect plane L.
Why is the Renaissance considered a turning point in history?