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

A professor's office door is 0.89 m wide, 2.0 m high, and 4.0 cm thick; has a mass of 25 kg ; and pivots on frictionless hinges. A "door closer" is attached to
Is the comma used correctly in this sentence Gorillas travel in packs, walk on all fours, and, sometimes stand upright.
how would you draw a picture to find 3 ÷ 1/2
I need helpConsider the following energy diagram.How much is the activation energy? A. 2.4 kcal/mole B. 14.4 kcal/moleC. 43.8 kcal/mole
Help number 10!!!!!!!!!
The Republican Party often has, Moderate to extreme views Liberal to conservative views. Conservative to moderate views Liberal to moderate views
hey so i really need to k ow the formula for a trapeazoid prism so that i can find the volume thx
The Bantu's government was a form of _____
Click an item in the list or group of pictures at the bottom of the problem and, holding the button down, drag it into the correct position in the answer box. R
How many seconds are there in 23 days ?