Answers for "compunt interest in python"

1

formula for compounding interest in python

P = int(input("Enter starting principle please. "))
n = int(input("Enter number of compounding periods per year. "))
r = float(input("Enter annual interest rate. e.g. 15 for 15% "))
y = int(input("Enter the amount of years. "))

FV = P * (((1 + ((r/100.0)/n)) ** (n*y)))

print ("The final amount after", y, "years is", FV)
Posted by: Guest on June-14-2020

Code answers related to "compunt interest in python"

Python Answers by Framework

Browse Popular Code Answers by Language