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 is a form of writing that criticizes a person,group, or society using indirect, often disguised , methods? A. Satire B.Fable C.Parable D.Allusion
What does the C in the ABCs of resuscitation stand for? A. compassion B. circulation C. commission D. computation Please select
What is the value of the underlined digit? Write the number 53
Recent studies support rosch-heider's theory of ______, rather than the sapir-whorf hypothesis
How is the bill of rights relevant to you as a high school student in the 21st century?
How does the poet show that the dragon is similar to beowulf? What are those similarities?
If m <5=42, what is m <4? A.42 B.48 C.128 D.138
Inductive reasoning involves developing a general rule from specific situations. True or false
is an earthquake mechanical or electromagnetic wave
Divide. Write your answer as a fraction in simplest form. 9/10÷(−6/5)=