Investment Account V2 As with the for loop, our investments are not under our beds and so they accrue interest income. W
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Investment Account V2 As with the for loop, our investments are not under our beds and so they accrue interest income. W
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!