capital=1500000
interes=2/100
tiempo=10

monto_final=capital*(1+interes)**tiempo
intereses=monto_final-capital

print(f"Despues de {tiempo} años, la inversion de {capital} a una tasa del 2% generara {intereses} en intereses")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: