





'''simple docstring'''





def       A__(		__lowerCAmelCase	,			__lowerCAmelCase ):
				if discount_rate < 0:
								raise ValueError('Discount rate cannot be negative' )
				if not cash_flows:
								raise ValueError('Cash flows list cannot be empty' )
				_snake_case :			List[str]  						=   sum(
				    cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(__lowerCAmelCase ) )
				return round(__lowerCAmelCase	,			ndigits=2 )


if __name__ == "__main__":
		import doctest

		doctest.testmod()













def       A__(		__lowerCAmelCase ):
				assert column_title.isupper()
				_snake_case :			List[Any]  						=   0
				_snake_case :			List[str]  						=   len(__lowerCAmelCase ) - 1
				_snake_case :			Dict  						=   0

				while index >= 0:
								_snake_case :			List[str]  						=   (ord(column_title[index] ) - 64) * pow(26	,			__lowerCAmelCase )
								answer += value
								power += 1
								index -= 1

				return answer


if __name__ == "__main__":
		from doctest import testmod

		testmod()






