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

The square of a whole number is 2809 what is the number
Which nations are run by a prime minister? Canada Greenland Mexico U.S
25 pound x 41.000 pounds
Limestone can NOT be found in which region?(of texas) Coastal Plains Great Plains Mountains and Basins North Central Plains
People joined together in business. A. Proprietorship B. Ownership C. Partnership D. Investment
How did the United States try to influence Vietnam’s national elections in 1956?
can you help me with this problem ? Please
which best explains why state government are better able to focus on the needs of the citizens and the federal government
you have 120 pieces of fabric to make a blanket. each piece of fabric is a square with a side length of 6 inches. you use as many pieces of fabric as possible t
What is it called when a line of poetry continues on to another line both in sense and in grammar