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

Compared to the physical and chemical properties of the compound NO2 the compound N2O has (1) different physical properties and different chemical properties (2
Which ion has the smallest radius? (1) O2- (2) S2- (3) Se2- (4) Te2-
Name one state that borders Mexico.
True or False? The segments below could form a triangle. A________C is 9 C_____B is 4 B_______________A is 15
the product of two integers is 50. one integer is twice the other. find the integers.
What do we show loyalty to when we say the Pledge of Allegiance?
Compared to the physical and chemical properties of the compound NO2 the compound N2O has (1) different physical properties and different chemical properties (2
What movement tried to end racial discrimination?
Which atom has the largest atomic radius? (1) potassium (3) francium (2) rubidium (4) cesium
What are two rights of everyone living in the United States?