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.
Recently Asked Questions
- how to create code to display a photograph with a purple or sunset filter
- I have a csv file with information about job postings. How would I display all_data without those companies whose highest salary was lower than the overall
- I have to design a pseudocode program that displays the following: ID number first name last name field of study gpa and display the words "honor roll" if the