Question
I want to create a table using For loop by python. the table at beginning should input the initial capital, interest rate, year of investment.
I want to create a table using For loop by python. the table at beginning should input the initial capital, interest rate, year of investment. and compounding frequency. besides, the program also can calculate if investors withdraw their investment early. the procedure can display a 5% early withdrawal penalty and a final returns minus the penalty.
for loop only. the procedure should display a table as the example show. include the year, start balance, interest, and end balance, and calculate the new balance and interest rate in each year.
I had create a table, but it cannot display the change of start balance, interest, and end balance from second year.
thus, I want to know how to use for loop to create a table like this.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started