Skip to content

Instantly share code, notes, and snippets.

@pigmonchu
Created November 29, 2021 16:41
Show Gist options
  • Save pigmonchu/b861f418d43e05d3015756fc4e838dcf to your computer and use it in GitHub Desktop.
Save pigmonchu/b861f418d43e05d3015756fc4e838dcf to your computer and use it in GitHub Desktop.
def interes_anual(cantidad, interes):
return cantidad * (1 + interes / 100)
def retorno_inversion(cantidad, interes, anyos):
r = []
for anyo in range(anyos):
cantidad = interes_anual(cantidad, interes)
r.append(round(cantidad, 2))
return r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment