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

What is the 8th term of the geometric sequence 4, −20, 100, …? −312,500 −12,500 62,500 1,562,500?
I NEEEEEDDDDDD HELLLLLPPPPPPPP ON THIS ONE PLEASE HELP ME ASAP how do you put 18.389 on a number line show your work pleaseeeee heeeeellllppp mmmeeeeeee :( :( :
which of the following are NOT polynomials
Which graph represents the solution to the system of inequalities? y ≥ x – 5 y < –x + 4
The ksp of agcl is 1.6 x 10-10. what is the solubility of agcl in 0.010 m fecl3? give your answer using scientific notation (1.23e-4) and to 2 significant figur
Evaluate 7C3. 35 210 21 105 IF you are the first to see this answer it the right way please and i will mark you brainliest
Is The waiter ladled potato leek soup into our bowls. a complete sentince
Help not sure of the answer would appreciate help
will award brainest, being timed, help ASAPThe dot plot below shows the amount of time two random groups of students took to brush their teeth:
Can someone please give the right answers to those