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

Put these in order of their invention: Oa b Daguerreotype, Autochrome, Stereograph Calotype, Autochrome Wet plate Collodion Wet plate Collodion, Autochrome, Kod
they made her repeat the whole thing​
Louisa is 5 feet 4 inches tall. How tall is she in inches?​
How do I solve this??
Why is understanding how to create accurate shapes important to creating realistic drawings?
198 scaled down by 1/10
Which of the following motivations for westward expansion does this advertisement NOT address? A. cheap land B. improved transportation C. mineral wealth
Ordinary table salt is sodium chloride. What is baking soda?
The strength of an acid depends on a. the number of double bonds b. the number of protons released c. the number of electrons gained d. all of the above
9 What is the act of “real hatred and prejudice” that William's father talked about?