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 are 3 main reasons for imperialism?
which of the following is the quote "those were the first human words"
What is the slope of the line? * 3 2 6 5 other: _______
Why did the Catholic Church express interest in the exploration of foreign lands? (5 points) 1.The Catholic Church was interested in gaining new converts to th
Your middle school has 900 students 1/3 of students bring their lunch instead of buying lunch at school what is the value of ratios of the number of students wh
Which system BEST represents these ideas?
When an object returns to its original shape and size after the stress is removed, it is called
use prime factorization to find the square root of 504
Write three numbers that are greater than 12,000 but less than 13,000
How many $1 bills are the same as one $100 bill?