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

what is a solid figure formed by 2 congruent parallel circles joined by a curved surface
-6u-6y=66 2v+4y=-32 v=. Y=
i need urgent help...How did the American Revolution influence the French Revolution? Soldiers who had fought on the side of the colonies started the French Rev
who was arguably most influential in the unification of Germany
How many times greater is one mile than one foot
The game of lacrosse seems complicated to me. How does the word complicated function in the sentence? A.predicate nominative B.indirect object C.predicate adjec
What tradition did the Bantu people bring with them throughout their migrations? farming hunting and gathering trading craftsmanship
When was Second World War started?
Name two different market structures. Describe how and why they each have a different competitive situation.
Clapping wildly, the audience shouted for the band to come back on stage for an encore. Identify the particle phrase in the sentence. A. For an Encore B. Clappi