Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def nestEggFixed(salary, save, growthRate, years):
- salaryList=[]
- retirementAccount=0
- for i in range(1, years):
- retirementAccount += salary*(save/100)
- retirementAccount *= (growthRate/100)
- salaryList.append(retirementAccount)
- return salaryList
Add Comment
Please, Sign In to add comment