Defining interest rate array in python -


i trying create mortgage calculator on python can cope multiple interest rate changes.

i want recalculate repayment formula every month, new interest rate.

what best way define array of interest rates?

say had 20 year mortgage, array need 240 entries, change @ time, seems there must quicker way typing out y=(0.01,0.01,0.01,0.015,0.015,0.02,0.015,0.02,0.02..) etc


Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -

php - Autoloader issue not returning Class -