Write Code Python 3 Future Value Function Different Rates Like Example Rates 2 7 4 Number Q37288456

How do you write code in Python 3 for a future value functionthat has different rates? Like for example if the rates are 2%, 7%,-4%. If the number of years is less than 3 years then it will usethe interest rates in the order it is written and if the number ofyears happens to be more than 3 years then the rates will berepeated in that same order. Thanks!

Update: The input would be the amount investedand the number of years.

The output is the future value of the investment at the end ofthe number of years from the input.

The interest or

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.