






'''simple docstring'''




from __future__ import annotations

def       __lowercase		(    __lowercase ) ->		int | float:

      '''simple docstring'''


      if len(__lowercase ) == 0:
            raise ValueError("find_max() arg is an empty sequence" )
      _A      =			nums[0]
      for x in nums:
            if x > max_num:
                  _A      =			x
      return max_num


if __name__ == "__main__":
    import doctest

    doctest.testmod(verbose=True)













'''simple docstring'''




def       __lowercase		(    __lowercase ) ->		int:

      '''simple docstring'''


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


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

    testmod()





