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

In which section of a cover letter should the writer explain why he or she is interested in the position? A. The introduction B. The closing C. The first body p
An electrical motor spins at a constant 2662.0 rpm. If the armature radius is 6.725 cm, what is the acceleration of the edge of the rotor? O 524,200 m/s O 29.30
Consider the function. f(x) = 2*x+12 What is the y-intercept of f(x)?
Which of the following was considered a problem with the Articles ofConfederation?​
In preparing a company's statement of cash flows for the most recent year, Ransom Corp. reported the following information: Repayment of outstanding bonds $107,
The value of cos1°.cos2°.cos3°.............cos179° is......?​
which of the diagram below represents the contrapositive of the statement if it is an equilateral triangle,then it is an isosceles
What statement Correctly describes his solution?
which angles are corresponding angles? check all that apply
A stone is dropped from the upper observation deck of a tower, 300 m above the ground. (Assume g = 9.8 m/s2.) (a) Find the distance (in meters) of the stone abo