




"""simple docstring"""

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


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

       testmod()









def        _snake_case   (_snake_case				:       list      ,    _snake_case				:       int      ,    _snake_case				:       int = 0      ,    _snake_case				:       int = 0)					->	int:
   _lowercase              =right or len(_snake_case) - 1
   if left > right:
      return -1
   elif list_data[left] == key:
      return left
   elif list_data[right] == key:
      return right
   else:
      return search(_snake_case      ,    _snake_case      ,    left + 1      ,    right - 1)


if __name__ == "__main__":
    import doctest

    doctest.testmod()


