





def        __lowerCamelCase (							__a       :int   )		->    int:






		"""simple docstring"""

		if a < 0:
				raise ValueError("""Input value must be a positive integer"""   )
		elif isinstance(__a   ,					__a   ):
				raise TypeError("""Input value must be a 'int' type"""   )
		return bin(__a   ).count("""1"""   )


if __name__ == "__main__":
			import doctest

			doctest.testmod()










def        __lowerCamelCase (							__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__  				=       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()



