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

may someone help me out with this
40 POINTS!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HELPPPPPPPP!!! Mike traveled from the school to the mall and then from the mall to the library. Henry traveled from the s
When an activist decides to use a song, speech, or video to communicate his message, he is using ________________________ to reach his audience.
solve the compound inequality -5x<10 and x+5>2
Users generally do not understand the concept of network drive sharing. they only know they can store their files "on my f: drive" and are unaware that someone
What is the result of advances in medical technology?
Which of the following accurately summarizes an idea of French enlightenment philosopher Jean- Jacques Rousseau?
What types of stories does Okonkwo tell his sons when they sit with him in his obi? colorful folktales featuring talking animals masculine stories of violenc
Which statement about sample size is true? A. As the sample size within a study increases, statistical power decreases. B. As the sample size within a study dec
which of the following is an example of poor human relations