def input_select_objects(prompt, objs, rep):
    """Prompt to user to choose all, none, or some of the given objects.
    Return the list of selected objects.

    `prompt` is the prompt string to use for each question (it should be
    phrased as an imperative verb). `rep` is a function to call on each
    object to print it out when confirming objects individually.
    """
    choice = input_options(
        (u'y', u'n', u's'), False,
        prompt % u'%s? (Yes/no/select)')
    print()  # Blank line.

    if choice == u'y':  # Yes.
        return objs

    elif choice == u's':  # Select.
        out = []
        for obj in objs:
            rep(obj)
            if input_yn(u'%s? (yes/no)' % prompt, True):
                out.append(obj)
            print()  # go to a new line
        return out

    else:  # No.
        return []


# Human output formatting.
dataset/ETHPy150Open beetbox/beets/beets/ui/__init__.py/input_select_objects/swapped operands of `%`