code: def isexec(path):
      '''
      Check if given path points to an executable file.
  
      :param path: file path
      :type path: str
      :return: True if executable, False otherwise
      :rtype: bool
      '''
      return os.path.isfile(path) and os.access(path, os.X_OKf isexec(path):
      '''
      Check if given path points to an executable file.
  
      :param path: file path
      :type path: str
      :return: True if executable, False otherwise
      :rtype: bool
      '''
      return os.path.isfile(path) and os.access(path, os.X_OK)
docs: Check if given path points to an executable file.
  
      :param path: file path
      :type path: str
      :return: True if executable, False otherwise
      :rtype: bool