Question: Problem 7 print(Problem 7) Ask the user how many pounds they weigh. Ask the user over how many weeks theyd like to diet. Using a
Problem 7
print("Problem 7")
Ask the user how many pounds they weigh.
Ask the user over how many weeks theyd like to diet.
Using a for loop that counts down, print a table of values with the number of weeks and the number of pounds theyll weigh after their diet.
Example: Starting weight of 150, 4 weeks, 2 pounds per week.
| Week | Weight |
| 4 | 150 |
| 3 | 148 |
| 2 | 146 |
| 1 | 144 |
| 0 | 142 |
| 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
