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 were the major causes of WWII? Please include at least 4 answers.
The function of the eardrum in the middle ear is to
The function of the eardrum in the middle ear is to
Simplify the expressions: cot 0 sec 0 A. Sin0 B. Csc0 C. Cos0 D. Cos* 0
What is the least common denominator for 5/6 and 3/8. 3/4 and 6/7
what is a high structure part of a church which has 5 letters
What were the major causes of WWII? Please include at least 4 answers.
Mini-Project: Cents and the Central Limit Theorem 1. Collect a sample of at least 50 pennies by setting aside all the pennies you receive in change for severa
The function of the eardrum in the middle ear is to
How do you?...Multiply out and simplify 10(2x-1)-20x?