Question: How do I get a return on the accept or decline project for npv calculated above. In [11]: CashFlows = (CFO, CF1, CF2, CF3, CF4,CF5]
How do I get a return on the accept or decline project for npv calculated above.
In [11]: CashFlows = (CFO, CF1, CF2, CF3, CF4,CF5] r = .11 def npv(r, CashFlows) : npv = 0 for i, val in enumerate(CashFlows): npv += val / (1+ r)*** return (npv) In [13]: print (npv(r, CashFlows)) 931.9900448164655 In [14]: if npv > 0: print("Accept Project!", npv) else: print ("Decline Project!", npv) TypeError Traceback (most recent call last) /var/folders/rh/xy_hq7xj48vf2fgm7c88wd2h0000gn/T/ipykernel_94255/2096898719.py in
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
