The following function is given to calculate the future value (fv) of capital (pv) in the n periodic compound capitalization model with the interest rate: def fv(pv, rate, n): return round(pv * (1 + rate) ** n, 2) We want to create a partial function from the fv() function that takes only one argument (rate) and computes the annual accumulation factor (n = 1, pv = 1). Select correct answer.
The following function is given to calculate the future value (fv) of capital (pv) in the n periodic compound capitalization model with the interest rate:
def fv(pv, rate, n):
return round(pv * (1 + rate) ** n, 2)
We want to create a partial function from the fv()
function that takes only one argument (rate) and computes the annual accumulation factor (n = 1, pv = 1). Select correct answer.
a.
annual_acc_factor = fv(pv=1, rate, n=1)
b.
annual_acc_factor = fv(pv=1, rate, n=1)
c.
from functools import partial
annual_acc_factor = partial(fv, pv=1, n=1)
1 Answers