mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
Fix docstring in present_value.py (#8702)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -6,6 +6,7 @@ An algorithm that calculates the present value of a stream of yearly cash flows
|
||||
2. An array of cash flows, with the index of the cash flow being the associated year
|
||||
|
||||
Note: This algorithm assumes that cash flows are paid at the end of the specified year
|
||||
"""
|
||||
|
||||
|
||||
def present_value(discount_rate: float, cash_flows: list[float]) -> float:
|
||||
|
Reference in New Issue
Block a user