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

Why should we learn about Jamestown?
can you please help me I will you the brain thing and extra points Which of the following categories would a truck drive fall into? Question 2 options: Land cap
During fetal development, the testis descends though the a. testicular vein b.spermatic cord c. inguinal canal d. ejaculatory duct e. seminiferous tubules
Catherine has been managing her company for a couple of years. She now plans to expand her business by bringing in fresh funding through a new stock issue. She
A line passes through the points (-6,4) and (-2,2). Which is the equation of the line?A. y= -1/2x + 1B. y= 1/2x + 7C. y= -2x + -8D. y= 2x + 16Please Help ☺️​
A labtop has ablisted price of $739.98 befire tax. If the sales tax rate is 8.75%, find the total cost of the labtop with sales tax included.
What change, if any, should be made to the sentence? They finally painted the hallway a brighter color. A. change They to the workers B. change painted to paint
square root -100= ___+___i
I need help in thiss
-3x + y = 7 3.x + 2y = 5