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

Which of these statements about Buddhism is true? A. In India, Buddhists accepted the Hindu caste system B. Buddhism remains a dominant religion in present-day
The gross income of David Vaughn is $785 per week. His deductions are $42.25, FICA tax; $90.33, income tax; 2% state tax; 1% city tax; and 3% retirement fund
The _____ Party advocated for labor reform.
What is the holy book of your faith and how does it compare to others? jesus, muhammmad, moses
what makes farming in mountainous areas so difficult without terracing the poor sound quality of mountain land? the rugged landscape of mountain and the lack of
who is the first president of the united state
The hypothesis that evolution occurs and irregular rate through geologic time is known as
25,49,81 what is the next one
25,49,81 what is the next one
How many oxygen atoms are found in one molecule of nitric acid, HNO3?