def yes_no_question(default=None):
    """
    Asks the user a yes/no question and translates it into bool.

    :return: bool
    """
    yes = {'yes', 'y', 'ye', 'Y'}
    no = {'no', 'n', 'N'}
    choice = input().lower().strip()
    if choice == '':
        choice = default
    if choice in yes:
        return True
    elif choice in no:
        return False
    else:
        print("Please respond with 'yes' or 'no'")
