"""simple docstring"""




from __future__ import annotations

from math import pow, sqrt






def      UpperCAmelCase    (		UpperCamelCase__				,			UpperCamelCase__				,			UpperCamelCase__ ):






							"""simple docstring"""





							if (resistance, reactance, impedance).count(0 ) != 1:
														raise ValueError('One and only one argument must be 0' )
							if resistance == 0:
														return {"resistance": sqrt(pow(SCREAMING_SNAKE_CASE_				,			2 ) - pow(SCREAMING_SNAKE_CASE_				,			2 ) )}
							elif reactance == 0:
														return {"reactance": sqrt(pow(SCREAMING_SNAKE_CASE_				,			2 ) - pow(SCREAMING_SNAKE_CASE_				,			2 ) )}
							elif impedance == 0:
														return {"impedance": sqrt(pow(SCREAMING_SNAKE_CASE_				,			2 ) + pow(SCREAMING_SNAKE_CASE_				,			2 ) )}
							else:
														raise ValueError('Exactly one argument must be 0' )


if __name__ == "__main__":
				import doctest

				doctest.testmod()








def 	snake_case__			(    SCREAMING_SNAKE_CASE_		:    str			):



     '''simple docstring'''





     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'			)
     lowercase__    :   Union[str, Any]      =       ''
     while len(SCREAMING_SNAKE_CASE_			) % 3 != 0:
          lowercase__    :   List[str]      =       '0' + bin_string
     lowercase__    :   Any      =       [
         bin_string[index : index + 3]
         for index in range(len(SCREAMING_SNAKE_CASE_			)			)
         if index % 3 == 0
     ]
     for bin_group in bin_string_in_3_list:
          lowercase__    :   str      =       0
          for index, val in enumerate(SCREAMING_SNAKE_CASE_			):
               oct_val += int(2 ** (2 - index) * int(SCREAMING_SNAKE_CASE_			)			)
          oct_string += str(SCREAMING_SNAKE_CASE_			)
     return oct_string


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

       testmod()

