






'''simple docstring'''







def     A__      (					__lowerCAmelCase		:      str    ):
						if not all(char in """01""" for char in bin_string    ):
												raise ValueError("""Non-binary value was passed to the function"""    )
						if not bin_string:
												raise ValueError("""Empty string was passed to the function"""    )
						lowerCamelCase__								=	""""""
						while len(A__    ) % 3 != 0:
												lowerCamelCase__								=	"""0""" + bin_string
						lowerCamelCase__								=	[
						    bin_string[index : index + 3]
						    for index in range(len(A__    )    )
						    if index % 3 == 0
						]
						for bin_group in bin_string_in_3_list:
												lowerCamelCase__								=	0
												for index, val in enumerate(A__    ):
																		oct_val += int(2 ** (2 - index) * int(A__    )    )
												oct_string += str(A__    )
						return oct_string


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

							testmod()





from __future__ import annotations

from collections import namedtuple


def    __lowerCamelCase   (      A__						: float						,						A__						: float						,						A__						: float					)     ->    tuple:
   lowerCamelCase_						:   Dict		= 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()





