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

The term _____ refers to the totality of a person's cognitive skills, attitudes, and abilities in _____ theory.
PLEASE ANSWER + BRAINLIEST!! What is the missing term? (10x – 4x^2) – (7x + ?) = 3x – 6x^2 A. -10x^2 B. -2x^2 C. -x^2 D. 2x^2
please help me please
What type of volcanic landforms occur at divergent plate boundaries
The image shows what happened when Claudia was jogging. What type of external barrier does this illustration show? a safe area to work out the lack of family su
Help me homework Thanks you for help
The sleep like state which an animal adopt to lower metabolic rates is called transpiration shedding of leaves hibernating migration
In what way did democratic Patriots such as Thomas Paine differ from conservative Patriots in their view of republics as a form of government?
What is the most likely significance of the tagline “The Greatest Snow on Earth”? It is a play on the words “The Greatest Show on Earth,” suggesting that the s
Keith ran in a marathon. it took him 3 hours and 2 minutes to run 26 miles. if he ran at the same rate for the whole race, how many minutes did take him to run