Answer:
Follow the code or function below...
Do not forget the saving amount, and initialise the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
Explanation:
inicial = float(eval(input('Enter the montly saving amount: ')))
x = (1 + 0.00417)
month_one = inicial * x
month_two = (inicial + month_one) * x
month_three = (inicial + month_two) * x
month_four = (inicial + month_three) * x
month_five = (inicial + month_four) * x
month_six = (inicial + month_five) * x
print('The sixth month value is: '+str(month_six))
Don't forget the saving amount, and initialise the balance with that amount. Inside the loop, work out and add the interest and then add the saving amount for the next month.
balance = 801
for month in range(6):
balance = balance * (1.00417)
print(balance)