Savings = int(input('Enter the value of the savings: ')) Yr1 = Savings + Savings * 0.05 Yr2 = Yr1 + Yr1 * 0.05 Yr3 = Yr2 + Yr2 * 0.05 Yr4 = Yr3 + Yr3 * 0.05 Yr5 = Yr4 + Yr4 * 0.05 Yr6 = Yr5 + Yr5 * 0.05 Yr7 = Yr6 + Yr6 * 0.05 Yr8 = Yr7 + Yr7 * 0.05 Yr9 = Yr8 + Yr8 * 0.05 Yr10 = Yr9 + Yr9 * 0.05 print ('Starting value:', Savings) print ('After 1 year:', Yr1 ) print ('After 2 year:', Yr2 ) print ('After 3 year:', Yr3 ) print ('After 4 year:', Yr4 ) print ('After 5 year:', Yr5 ) print ('After 6 year:', Yr6 ) print ('After 7 year:', Yr7 ) print ('After 8 year:', Yr8 ) print ('After 9 year:', Yr9 ) print ('After 10 year:', Yr10 )