Question: These two functions return the same output. I am wondering where should I put the return total_amount. def savings (amount, interest rate, months): Given a


These two functions return the same output.
I am wondering where should I put the return total_amount.
def savings (amount, interest rate, months): Given a monthly contribution amount (e.g., 100), the annual interest rate (e.g., 5), and the number of months (e.g., 6), returns the savings amount after the given month. i = 0 total amount = 0 monthly interest rate = interest rate/1200 if months == 0: total amount == amount return amount else: while i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
