def user_input_handling_function_eighth():
    print()
    user_input = input('Enter: ')
    print()
    good_to_go = 'no'
    errors = []
    digits = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-']
    while (good_to_go == 'no'):
        if (user_input == 'None'):
            user_input = None
            return user_input
        else:
            for inner in user_input:
                if (inner not in digits):
                    print('The number must be an integer that consists of digits. For example: 1, -2, etc. or the keyword:')
                    print('None.')
                    errors.append('yes')
                    break
        if ('yes' in errors):
            good_to_go = 'no'
            errors = []
            print()
            user_input = input('Re-enter: ')
            print()
        else:
            good_to_go = 'yes'
    return int(user_input)
def user_input_handling_function_eighth():
    print()
    user_input = input('Enter: ')
    print()
    good_to_go = 'no'
    errors = []
    digits = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-']
    while (good_to_go == 'no'):
        if (user_input == 'None'):
            user_input = None
            return user_input
        else:
            for inner in user_input:
                if (inner not in digits):
                    print('The number must be an integer that consists of digits. For example: 1, -2, etc. or the keyword:')
                    print('None.')
                    errors.append('yes')
                    break
        if ('yes' in errors):
            good_to_go = 'no'
            errors = []
            print()
            user_input = input('Re-enter: ')
            print()
        else:
            good_to_go = 'yes'
    return int(user_input)