Question: Problem 8 print(Problem 8) Ask the user how many minutes they work out. Running on a treadmill, you burn 15 calories per minute. Use a
Problem 8
print("Problem 8")
Ask the user how many minutes they work out.
Running on a treadmill, you burn 15 calories per minute.
Use a for loop to print a table of values from 0 to the number of minutes specified.
Increment by 5 minutes.
For example, if the user works out for 30 minutes, your chart would look like this.
| Time | Calories |
| 0 | 0 |
| 5 | 15 |
| 10 | 30 |
| 15 | 45 |
| 20 | 60 |
| 25 | 75 |
| 30 | 90 |
| Source Code (Copy/Paste) | |
| Terminal Output (Screenshot) |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
