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

. line containing ( −3, 4 ) ( −2, 0)
x - (-20) = 5 _________________
PLEASE help me with this question! This is really urgent! No nonsense answers please.
Alvarito tiene que terminar el libro ____ el once de mayo. A. para B. en C. durante D. por
Karim has two investments, one in Company A, and another in Company B. Karim purchased 3,000 shares in company A at $2.65 per share. Since purchasing the shares
An isolated parallel-plate capacitor has a surface charge density. If the space between the plates is filled with a material of dielectric constant k = 3, find
tolong donk cari apa jawabannya ​
As a result of a decrease in the demand for U.S. dollars, there has been depreciation in the value of the U.S. dollar relative to Jamaican dollars. The deprecia
can somewon help i need help
A city of Punjab has a 15 percent chance of wet weather on any given day. What is the probability that it will take a week for it three wet weather on 3 separat