def user_input_handling_function_third():
    print()
    user_input = input('Enter: ')
    print()
    good_to_go = 'no'
    errors = []
    yes_or_no = ['yes', 'no']
    while (good_to_go == 'no'):
        if (user_input not in yes_or_no):
            print('You have to answer yes or no.')
            errors.append('yes')
        if ('yes' in errors):
            good_to_go = 'no'
            errors = []
            print()
            user_input = input('Re-enter: ')
            print()
        else:
            good_to_go = 'yes'
    return user_input
def user_input_handling_function_third():
    print()
    user_input = input('Enter: ')
    print()
    good_to_go = 'no'
    errors = []
    yes_or_no = ['yes', 'no']
    while (good_to_go == 'no'):
        if (user_input not in yes_or_no):
            print('You have to answer yes or no.')
            errors.append('yes')
        if ('yes' in errors):
            good_to_go = 'no'
            errors = []
            print()
            user_input = input('Re-enter: ')
            print()
        else:
            good_to_go = 'yes'
    return user_input