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

8686 rounded to the nearest non zero
identify the central I deal of the second paragraph of the selection
The length of a rectangle is 3cm more than twice it's width. The perimeter of the rectangle is 65 square cm. Determine the length and width of the rectangle
Explain some of the conditions described in this excerpt from How the Other Half Lives.
When did donald trump become the president?
What is seven divided by forty four?
What is this some of the prime factors of 105?
explain the significance of laissez-fair,market structure, perfect competition,imperfect competition,monopolistic competition, product differentiation,nonprice
Which compounds are the reactants
Compared to our sun, the white dwarf star 40 eridani b is