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

Brainliest to who answers correctly
The vertices of a square are located at (−4, 0), (−7, 0), (−4, 3) and: A. (0, 7) B. (-7, 3) C. (0,3) D. (4,3)
The established supreme authority over Virginia
Calculate the molar enthalpy of formation of solid lithium fluoride
Ancient babylonian canals are most similar in function to which modern inventions
I neeeeddddddd help pleeeeeaaaaaaaseeeee
proper usage of the PRICE method of treatment can heal an ACL injury
1.what is the mode of the set 2. What is the range of the set 3. Whose height is closest to the median height for the set 4.whose height is closest to the mean
***HURRY***Which equation is used to calculate the electric potential in an electric field from a point charge? V = k q/d^2 V = k q/d △V = △U/q △V = △U/E
When an autobiographer uses I, the __ point if view is being used