Created
June 19, 2014 16:21
-
-
Save bgits/f344fc0f4dccdd11b3f4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
principal = float(input("Enter the lump sum investment: ")) | |
apr = float(input("Enter the perodic interest rate: ")) | |
years = int(input("Enter the number of periods: ")) | |
x = years | |
for i in range(years): | |
principal = principal * (1+apr) | |
print('The value in %s periods is: %s' % (years,principal)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calculates the future value of a lump sum compounded over a specified period