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 was the primary, religious reason that Christians refused to worship state gods and emperors? Question 32 options: Christians did not think Roman gods were
please help and give details!!
How many different ways can 5 events be ordered?
In 5.5 minutes you are able to type 297 words. What is your rate in words per minutes?
Replace the given subject with the appropriate subject pronoun: 1. María tiene muchos juguetes. ______ tiene muchos juguetes. 2. Tú y tus compañeros comen tacos
Therefore, one who becomes a prince through the favour of the people ought to keep them friendly, and this he can easily do seeing they only ask not to be oppre
Х Connor is 19 years old and is on probation. He has been ordered to meet with a probation officer once a week. His car broke down and he missed his probation m
How much does a cervix weigh
Katrina is directing a historic play. she is working on a scene with a lighting manager, James. For a particular scene where only the lead actor is pacing the s
Brody bought 22 chicken wings for $37.40. If Brody spent $30.60, how many chicken wings did he buy?