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

find the value of the expression. Round decimal answers to the nearest tenth when necessary. 9+7×3^2÷3+9
1.असहयोग आन्दोलन का मुख्य कारण क्या था?​
SLOPE! QUESTIONS! first time using this app can someone help?
A 9000 kg rock slides on a horizontal surface with negligible friction at 3 m/stoward a 3000 kg rock that is atrest, as shown in Figure 1. & collision occur
The labeling on this package of oatmeal shows that 32 ounces = 907 grams 10 ounces =?
0.0058=5.8x10r what is the value of r in the equality belone
if a piece of dna goes missing what happens to the information
Would you mid __________ ? A. to open the door C. opened the door B. open the door D. opening the door E. to opened the door​
Help to solve this question
Last summer, a sports club had 56 members. This summer, due to some renovations, it has 25% fewer members. How many members are there now?