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 need 5 paragraphs about global warming pleaseeee!!!
why does harjo include the image of the blue horse
Anna is playing a word game with tiles shaped like triangles. She needs to make a word with only those that appear to be right triangles. Which word can Anna ma
Ally ran 5 miles in 36 minutes. Sami ran 6 miles. If ally ran at a faster rate then Sami, in how many minutes could Sami have run 6 miles?
If the doctor prescribed a different drug that blocked all alpha receptors, what additional side effect might lisa experience?
Read this excerpt from a short story. Then, answer the questions that follow From the day Danny Bannerman transferred to Spencerville High School, he was popula
Swish , ping , and zoom are examples of
Find the missing number in each number sentence
According to Whittaker’s system of classification, which of the following is not a kingdom?
Which choice is an example of the comparative form? A. finest B. redder C. most exquisite D. blazer