need it in python please without no errors, the given output is shown in the 3rd pic.
Compound interest is an important financial concept that motivates saving early and often in your lifetime. Assuming no withdrawals from a savings account, the interest earned on your savings in one time period becomes part of the account balance and earns interest in future time periods. Therefore, even without any additional principal, an account earning compound interest will earn more and more interest in each subsequent year. For a specific investment, we can calculate the amount of money in the account as: P=P(1+nr)ntwhere: - P is the initial amount of the investment (the original principal) - r is the interest rate - n is the number of compounding per year (e.g., 12 for monthly compounding, 4 for quarterly, 1 for annual - t is the number of years of interest - P ' is the new balance of the account after earning interest for t years For this assignment, you'll be asked to write a program that gathers some of these variables from the user, calculates some figures using the above equation, and displays the results. You need to write a program that acts as a savings calculator. It should: - Prompt the user to enter P, r. n, and t. Your prompts should be "user-friendly" and should NOT require a user to know what, for example, n The prompts should make it obvious what the user should enter and what units are expected - Display original principal (P), the amount of interest earned (P:-P), and the total value of the account at the end of the term (P) - All monetary values should be displayed with units (i.e. dollar signs), commas, and two decimal places. For example; $20,023.23 The output produced by your program should be nearly identical to the sample output that is distributed together. Please see that attached file, "1_sample_output.txt". While the user's input will vary from run to run, the prompts and messages printed to the console when using your program should match those in the sample output to receive full credit. If all the text is on one line, please open it with MS Word or another compatible text editor. Welcome to the Compound Interest Calculator. Please enter the initial amount of your investment: 25000 Please enter the interest rate (e.g.,.03 for 3o interest): .04 Please enter the number of years for the investment: 10 Please enter the number of compoundings per year: 12 Original Investment: $25,000.00 Interest Earned: $12,270.82 Final Balance: $37,270.82