(Solved):Running on a particular treadmill, you burn 4.2 calories per minute. Write a Python program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes. View Answer…

 

Question

Running on a particular treadmill, you burn 4.2 calories per minute. Write a Python program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.

 

EXPERT ANSWER

def calorie_burned(time):
    cal_burn=time*4.2
    return cal_burn
run_time=[10, 15, 20, 25, 30]
for rt in run_time:
    print(calorie_burned(rt))

We are so grateful for the pleasure of serving you and hope we met your expectations. Thank you. Manvila.

Scroll to top