

def   __UpperCAmelCase					(      __a :     float						,__a :     list[float]      )     ->	float:

					"""simple docstring"""

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


if __name__ == "__main__":
			import doctest

			doctest.testmod()








"""simple docstring"""







def       _lowerCamelCase				(							UpperCAmelCase_ :       int     )	-> int:






	"""simple docstring"""





	if not isinstance(UpperCAmelCase_,	UpperCAmelCase_     ):
		raise ValueError("Input must be an integer"     )
	if input_num <= 0:
		raise ValueError("Input must be positive"     )
	return sum(
	    divisor for divisor in range(1,	input_num // 2 + 1     ) if input_num % divisor == 0     )


if __name__ == "__main__":
			import doctest

			doctest.testmod()




