





"""simple docstring"""




from collections.abc import Sequence






def  _SCREAMING_SNAKE_CASE						(      _lowercase		:       Sequence[float]       ,			_lowercase		:       float   )					->float:






	'''simple docstring'''






	return sum(c * (x**i) for i, c in enumerate(__lowerCAmelCase   )   )






def  _SCREAMING_SNAKE_CASE						(      _lowercase		:       Sequence[float]       ,			_lowercase		:       float   )					->float:






	'''simple docstring'''






	a :						Any      =							0.0
	for coeff in reversed(__lowerCAmelCase   ):
		a :						List[Any]      =							result * x + coeff
	return result


if __name__ == "__main__":
		a		:					List[str]	      =     (0.0, 0.0, 5.0, 9.3, 7.0)
		a		:					Dict	      =     10.0
		print(evaluate_poly(poly, x))
		print(horner(poly, x))










from collections.abc import Iterable
from typing import Generic, TypeVar

UpperCamelCase    							=      TypeVar('_T')







class 		_A						( Generic[_T] ):

  def __init__(    self						:	int   ,				lowerCamelCase__						:	Iterable[_T] | None = None			):
     """simple docstring"""

     __UpperCamelCase	:			list[_T]					=					list(iterable or []			)
     __UpperCamelCase	:			list[_T]					=					[]

  def __len__(    self						:	str			):
     """simple docstring"""

     return len(self._stacka			) + len(self._stacka			)

  def __repr__(    self						:	Dict			):
     """simple docstring"""

     return f'Queue({tuple(self._stacka[::-1] + self._stacka			)})'

  def    a					(    self						:	Union[str, Any]   ,				lowerCamelCase__						:	_T			):
     """simple docstring"""

     self._stacka.append(lowerCamelCase__			)

  def    a					(    self						:	Union[str, Any]			):
     """simple docstring"""

     __UpperCamelCase	:			Any					=					self._stacka.pop
     __UpperCamelCase	:			int					=					self._stacka.append

     if not self._stacka:
        while self._stacka:
           stacka_append(stacka_pop()			)

     if not self._stacka:
        raise IndexError("""Queue is empty"""			)
     return self._stacka.pop()


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

       testmod()



