Question: PYTHON- no 'i' statements Use a for loop (with range) with an accumulator to calculate a persons weight at the end of the month for

PYTHON- no 'i' statements

Use a for loop (with range) with an accumulator to calculate a persons weight at the end of the month for five months assuming that their diet reduces calorie intake by 500 calories per day. The typical weight loss is four pounds per month. The program should prompt the user to enter their current weight. Use int for the data type and create appropriate prompts for the input statements. Enter 150 pounds for the test data. Copy code and output.

Output should be this:

What is your starting weight? 150

At the end of the month 1 your weight will be 146 lbs.

At the end of the month 2 your weight will be 142 lbs.

At the end of the month 3 your weight will be 138 lbs.

At the end of the month 4 your weight will be 134 lbs.

At the end of the month 5 your weight will be 130 lbs.

>>>

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!