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 terrible thing do the boys realize about what is happening inside the church? What do they do about it? What do their actions say about their characters?
three-point 3.652 minus 1.41 hundreds equals what
what variation would be considered an adaptation? explain
In 1950 what did schools do to kids that could not speak English
Set up the integral needed to find the volume of the solid bounded by the hyperboloid z2 = 64 x2 y2 and by the upper nappe of the cone z2 = 2x2 2y2
Which of the following are examples of physical change? carbon dioxide sublimating cooking a hamburger water evaporating a match burning
why is john Proctor be considered moral/ethical person?
Which of the following is NOT a type of joint? a.gliding b.sliding c.hinge d.ball and socket
Is the table a meter are cm
The founder and earliest leader of the church of jesus christ of latter-day saints in 1820 was