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

php - Autoloader issue not returning Class -

java - How to put two numbers separated by a space into two different arrays -

python - matplotlib equivalent for Ubuntu servers with no GUI? -