def user_confirm(symbol, prompt):
    """Ask the user for yes / no confirmation using the console.

    Returns:
        True if the user responds yes, or False if the user responds no
    """
    prefix = "[$" + symbol + " " * (3 - len(symbol)) + "] " + prompt + " [Y/n] "
    while True:
        result = input(prefix).strip().lower()
        if result == "y" or result == "yes":
            return True
        if result == "n" or result == "no":
            return False