Answer to Question #286208 in Python for shaj

Question #286208

The treadmill promises that you will burn 3.9 calories each minute.


Write a program that uses a loop to display the number of calories burned after the following intervals: 10, 15, 20, 25, and 30 minutes. Hint: use if statements inside the loop for these intervals.


1
Expert's answer
2022-01-10T11:19:57-0500
calories_per_second = 3.9


for i in range(10,31):
    print(i *calories_per_second ," calories burned after ",i , " minutes")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS