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

Judith Fisher's Promotion App Peter Walters, the chief financial officer, had a close relationship with one of his employees, Judith Fisher, but they broke up.
[20 Points] Add the expressions 4- 2/3b+ 1/4a and 1/2a + 1/6b -7 . What is the simplified sum? A: -1/6a + 5/12b - 3 B: 3/4a + 1/2b - 3 C: 3/4a + 5/6b - 3 D: 5/1
how to minimize the harmful effects of power station on our environment​
¿Qué vale ochenta y cinco euros?
what care should be taken before using emergency contraception​
107. We -------- a survey on workplace safety. A. explain B. accommodate C. conducted D. raise
how do blood vessels function to maintain body temperature on hot and cold day​
Tectonic plates are large segments of the earth's crust that move slowly. Suppose one such plate has an average speed of 5.5 cm per year. (a) What distance does
Solve for x in the triangle. Round your answer to the nearest tenth. 14 x 68 X
CH3CH₂OH + 0₂ → CO₂ + H₂O