Compound interest

Sign in to test your solution.
# Compound interest program # ------------------------- # Subprograms # ------------------------- def compound(balance, interest_rate, target_balance): print("Year", year,": Balance £", balance) # ------------------------- # Main program # ------------------------- compound(balance, interest_rate, target_balance)