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)

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged