num = float(input("Enter the value of the savings: ")) print("Starting value:", num) for year in range(1, 11): num += num * 0.05 year_label = "year" if year == 1 else "years" print("After", year, year_label + ":", round(num, 2)) #google might of helped me on this one too