Calculate the compound amount for a principal P = 1000, annual interest rate r = 0.05 (5%), compounded n = 1 time per year for t = 3 years. Formula: A = P * (1 + r/n)**(n*t). Print the resulting total amount rounded to 2 decimal places using round(A, 2).
Instructions
Apply the formula `A = P * (1 + r/n)**(n*t)`.
Print `round(A, 2)`.
Progressive Hints (1 / 2)
Follow order of operations with parentheses.
solution.py
Ctrl+Enter to run
Loading Monaco Editor...
Press Ctrl+Enter or click "Run Code" to execute your solution in the browser.