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

3x+y=4 2x+y=5 solve using linear combination
what is the kingdom and phylum of a euglena protest?
Can someone please help me ?
China, Korea, and Japan share cultural similarities in part due to their (1) clashes with Russian imperialists (2) shared river systems (3) contacts through tra
least number that has 2, 3, 4, as factors
what does etymology study?
USE A NUMBER LINE TO FIND 8/9 / 8/45.
Which period was the “golden age of dinosaurs”? a. the Triassic Period b. the Jurassic Period c. the Cretaceous Period d. the Tyrannosaurus Period
A flight instructor charges $50 per lesson, plus an additional fee for the use of his plane. The charge for the use of the plane varies directly with the square
Can someone please help me ?