
"""simple docstring"""


from collections.abc import Sequence



def 	lowerCamelCase__			(							UpperCAmelCase_		,      UpperCAmelCase_				)->							float:







       """simple docstring"""
       return sum(c * (x**i) for i, c in enumerate(UpperCAmelCase_				)				)



def 	lowerCamelCase__			(							UpperCAmelCase_		,      UpperCAmelCase_				)->							float:







       """simple docstring"""
       UpperCamelCase					 =		0.0
       for coeff in reversed(UpperCAmelCase_				):
              UpperCamelCase					 =		result * x + coeff
       return result


if __name__ == "__main__":
      SCREAMING_SNAKE_CASE      =     (0.0, 0.0, 5.0, 9.3, 7.0)
      SCREAMING_SNAKE_CASE      =     10.0
      print(evaluate_poly(poly, x))
      print(horner(poly, x))







"""simple docstring"""


def 	lowerCamelCase__			(							UpperCAmelCase_				)->							int:







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


if __name__ == "__main__":
      import doctest

      doctest.testmod()





