def get_true_or_false(message, default=False):
    """
    transfer user input Y/n into True or False

    :para message: input message should to user
    :type: string

    :para default: default value

    :rtype: boolean
    """
    expected_response = {'y', 'Y', 'n', 'N', ''}
    response = input(message)
    while response not in expected_response:
        response = input(message)
    if response == 'Y' or response == 'y':
        return True
    elif response == 'N' or response == 'n':
        return False
    else:
        return default
