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

Bitcoin technology is only used to power Bitcoin. True False
1. Elie Wiesel states he has “born witness to persecution past and present.” This quote means that: a. Elie has witnessed everything. b. Elie saw people killed
Which describes the combined variation in the formula h=v/ πr^2? h varies directly with V and inversely with the square of r. h varies directly with V and inver
What are the most comfortable blood pressure cuffs
Can someone help me with this. Please I beg you.
When can a bill become a law without a presidential signature
Is the statement true or false? Queen Victoria reigned for more than sixty years and promoted the “Victorian” values of duty, hard work, and proper behavior. tr
How to use proptypes in react functional component
In the context of planning, if there is alternative generation, evaluation, and selection steps which reveal several different future scenarios, a different ___
The circle below is centered at (10, 4) and has a radius of 4. What is its equation? A. (x - 10)2 + (y - 4)2 = 16 B. (x - 10)2 + (y - 4)2 = 4 C. (x - 4)2 + (y