This exercise functions as a preparation for the starmap method of itertools.
We had written a function for the Savings Plan Formula.
There is given a list with tuples. Each tuple consists of the values:
(PMT, ARP, n, Y)
How can we create an iterator, which creates the values for the accumulated savings plan balances without using starmap?
saving_plans = [(200, 0.04, 12, 10),
(200, 0.01, 12, 10),
(200, 0.0001, 12, 10),
(200, -0.01, 12, 10)]
s = ( accu_savings(*plan) for plan in saving_plans )