### Instruction: Cody has an insurance plan that will give him a discount if he logs a total of 100,000 steps. For the first week, he logs 1,000 steps a day.  He increases his daily number of steps by 1,000 every week.  After 4 weeks how far away from his step goal will he be? Please respond by writing a program in Python.### Response: # define the variables
total_steps = 100000
steps_per_day_week1 = 1000
increase_per_week = 1000
days_per_week = 7

# calculate total steps for 4 weeks
total_steps_4weeks = 0
for week in range(1, 5):
    total_steps_4weeks += steps_per_day_week1 * days_per_week
    steps_per_day_week1 += increase_per_week

# calculate how far away from his step goal
steps_remaining = total_steps - total_steps_4weeks

# print the result
print(steps_remaining)