Guest User

Untitled

a guest
Jun 20th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. def nestEggFixed(salary, save, growthRate, years):
  2.  
  3. salaryList=[]
  4. retirementAccount=0
  5. for i in range(1, years):
  6. retirementAccount += salary*(save/100)
  7. retirementAccount *= (growthRate/100)
  8. salaryList.append(retirementAccount)
  9. return salaryList
Add Comment
Please, Sign In to add comment