Investment Account V2 As with the for loop, our investments are not under our beds and so they accrue interest income. W
Posted: Sun May 15, 2022 8:22 am
Investment Account V2 As with the for loop, our investments are not under our beds and so they accrue interest income. Write a while loop that calculates retirement age using compounding returns to • For interest rate, use the annualized SPY (S&P 500 ETF ticker) returns over the past 10 years Make sure you calculate the FV of the amount you will need to retire (i.e. $1 million today does not have the same buying power as $1 million in 40 years) Submit through your Github repository (this is an individual project, but may be submitted through an individual folder inside the group repo) A simple while loop looks like this: while balance < retirement_value balance += deposit age += 1 print("I will have fat ! years old." format(balance, age) Note that I have not included initial variable definition.