Question: Compound interest means that you add the interest (say, 2%) to a starting balance (say, $100) for a period of time (say its a year)

Compound interest means that you add the interest (say, 2%) to a starting balance (say, $100) for a period of time (say it’s a year) to get a new balance ($102.00 in this example). During the next period of time, we apply the same interest rate to the new balance. In our example, during the second year, our 2% interest on $102 would give us $104.04 as our new balance. Write a function compound Interest that takes in an interest rate, a starting balance, and a number of years, then returns what the newbalancewould be.

Step by Step Solution

3.40 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

def compound InterestinterestRat... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Introduction to Computing and Programming in Pytho Questions!