savings = float(input("Enter the value of the savings: ")) print("Starting value: ", savings) for year in range(1, 11): savings *= 1.05 if year == 1: print("After", year, "year: ", savings) else: print("After", year, "years: ", savings)