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

Which two statements explain the basic tenants of Christianity
Given the equation y= -2/3 x-3 can you completle the table
Decrease £180 by 12.5%
Is lord.x the best sonic
1 2/3 divided by (-2 3/4) in simple form please answer fast for a quiz on monday this is my cheat sheet lol need it fast bo !!!
Who created this piece of art? A. Raphael B. El Greco C. Jan van Eyck D. Jacopo da Pontormo
Why is there a newd to preserved the culture and traditions of the lumads?
in order to live on one’s own, rather than in an institution, the person must be
Giving brainlest for correct answer Please solve ??-3/10=1/5
solve with steps plz​