



def       lowerCamelCase_  (    _a       :						str    ):



    '''simple docstring'''




    UpperCAmelCase_     :       int  		=					str(_a    ).strip()
    if not bin_string:
        raise ValueError("""Empty string was passed to the function"""    )
    UpperCAmelCase_     :       List[str]  		=					bin_string[0] == """-"""
    if is_negative:
        UpperCAmelCase_     :       Optional[int]  		=					bin_string[1:]
    if not all(char in """01""" for char in bin_string    ):
        raise ValueError("""Non-binary value was passed to the function"""    )
    UpperCAmelCase_     :       Optional[int]  		=					0
    for char in bin_string:
        UpperCAmelCase_     :       Dict  		=					2 * decimal_number + int(_a    )
    return -decimal_number if is_negative else decimal_number


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

      testmod()





"""simple docstring"""







from .stack import Stack

def 							UpperCamelCase_       (       lowerCAmelCase__ :							str		)		->  bool:

  """simple docstring"""




  lowerCAmelCase_  :							Stack[str]								=					Stack()
  lowerCAmelCase_  :							List[str]								=					{'(': ')', '[': ']', '{': '}'}
  for bracket in parentheses:
    if bracket in bracket_pairs:
      stack.push(lowerCAmelCase__		)
    elif bracket in (")", "]", "}"):
      if stack.is_empty() or bracket_pairs[stack.pop()] != bracket:
        return False
  return stack.is_empty()


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

     testmod()

     lowercase__						:							List[str]        =      ["""((()))""", """((())""", """(()))"""]
     print("""Balanced parentheses demonstration:\n""")
     for example in examples:
          lowercase__						:							List[Any]        =      """""" if balanced_parentheses(example) else """not """
          print(f'{example} is {not_str}balanced')





