Respuesta :
The modification of the program of the interest calculation inside the loop to compute three years worth of savings instead of one is:
"Program that calculates savings and interest'
initial_savings = 10000
interest rate = 0.05
years = int(input('Enter years: '))
print()
savings = initial_savings
range(1,3,2)
for i in range():
print("Savings in year {}: ${:.2f}'.format(i, se )
savings = savings + (savings*interest_rate)
print('\n')
What is a Program?
This refers to the sequence of steps that are written in lines of code and entered into a computer system that tells the computer what to do.
Based on the given image, there are lines of code that are used to calculate savings and interest.
Some slight modifications have been made to changing the range() function to print every three years instead, using the three-argument alternate version of range().
Read more about programs here:
https://brainly.com/question/1538272
#SPJ1
