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

sec^2x+2sec=0. solve the equation for 0
The chemical formula for the ionic compound consisting of nitride ions and titanium(III) ions is Ti3N? true or false??????
Give an example on how structure and function are related in an organism.
How did the British effort to regain their market for manufactured goods affect America's industries?
express angular displacement in radians
if you flip three fair coins what is probability that you'll get all three heads
Social Security: Find the number of possible 9-digit social security numbers if the digits may be repeated.
What are two expressions you can use in Spanish to show agreement? Describe two games that are typical of the gaucho games
Which part of the brain controls body movements and processes information from the sense organs? (1) Cerebral cortex. (2) Pons. (3) Corpus callosum. (4) Pituit
What major city does the Buffalo Bayou pass through? a. Austin b. El Paso c. Houston d. Lubbock