程序代写代做代考 Exercise 4-11 Weight Loss

Exercise 4-11 Weight Loss

# Get the user’s starting weight.
print(‘What is your starting weight? ‘, end=”)
weight = int(input())

# Display the weight loss table.
for month in range(1, 6):
weight = weight – 4
print(‘At the end of month’, month,
‘your weight will be’, weight, ‘lbs.’)