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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!