Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nw3965/e9b441fc5bc31c207124eb9cf535f5bb to your computer and use it in GitHub Desktop.
Save Nw3965/e9b441fc5bc31c207124eb9cf535f5bb to your computer and use it in GitHub Desktop.
def compound (co):
def interest(interests):
return co*interests
return interest
five_years=compound(100000)
seven_years=compound(10000000)
ten_years=compound(10000)
print(five_years(0.012))
print(seven_years(0.0121))
print(ten_years(0.013))
num = [five_years+seven_years+ten_years]
print(num)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment