



"""simple docstring"""





from __future__ import annotations

from collections import namedtuple
def        a__     (				lowerCAmelCase__     ,      lowerCAmelCase__     ,      lowerCAmelCase__				):
      UpperCAmelCase_      			=							namedtuple("result"     ,      "name value"				)
      if (voltage, current, power).count(0				) != 1:
            raise ValueError("Only one argument must be 0"				)
      elif power < 0:
            raise ValueError(
                "Power cannot be negative in any electrical/electronics system"				)
      elif voltage == 0:
            return result("voltage"     ,      power / current				)
      elif current == 0:
            return result("current"     ,      power / voltage				)
      elif power == 0:
            return result("power"     ,      float(round(abs(voltage * current				)     ,      2				)				)				)
      else:
            raise ValueError("Exactly one argument must be 0"				)


if __name__ == "__main__":
  import doctest

  doctest.testmod()









"""simple docstring"""





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

lowerCamelCase       	=						TypeVar("""_T""")
class 				lowercase__       (   Generic[_T]				):







       '''simple docstring'''


       def __init__(							self      :  int		,    _UpperCAmelCase      :  Iterable[_T] | None = None   )			->						None:


             '''simple docstring'''




             UpperCAmelCase_      			=							list(iterable or []   )
             UpperCAmelCase_      			=							[]



       def __len__(							self      :  Optional[int]   )			->						int:


             '''simple docstring'''




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



       def __repr__(							self      :  Optional[Any]   )			->						str:


             '''simple docstring'''




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



       def 					lowercase__    (							self      :  Optional[Any]		,    _UpperCAmelCase      :  _T   )			->						None:


             '''simple docstring'''




             self._stacka.append(_UpperCAmelCase   )







       def 					lowercase__    (							self      :  Dict   )			->						_T:


             '''simple docstring'''




             UpperCAmelCase_      			=							self._stacka.pop
             UpperCAmelCase_      			=							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()




