Skip to content

Instantly share code, notes, and snippets.

@Nw3965
Created November 16, 2019 06:52
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/788e59f12950b5f980eb1b2516866e12 to your computer and use it in GitHub Desktop.
Save Nw3965/788e59f12950b5f980eb1b2516866e12 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)
num5=(five_years(0.012))
num7=(seven_years(0.0121))
num10=(ten_years(0.013))
#type(ten_years)
#print(ten_years)
x = [num5+num7+num10]
print(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment