def ask_yes_or_no(prompt):
    """
    Specialized input to ask confirmation for a question.

    :param str prompt: Question to be confirmed
    :return: The user confirmation
    :rtype: bool
    """

    acceptable = set(["Y", "YES", "N", "NO"])

    choice = ""
    while choice not in acceptable:
        choice = input(prompt + " (y/n)? ").upper()

    return choice[0] == "Y"