I could REALLY use some help with this problem:
list = [[1, 300], [2,600], [4, 900]]
The first element of the pairs below is the year and the second is the cash at the end of that year.
If I'm trying to calculate the cash values for each year and the formula for cash value is sum(cash/(1 + rate)**year), how can I figure out that the cash value at the end of year is 0?
I've been trying to use the values within the sublists but it's not letting me. Is that the best approach?