instruction:
In this task, you are given inputs i and A, where i is an integer and A is a list. You need to list all the elements of A preceding the last i elements. i will always have a value less than the length of A.
question:
3, ['P', 'u', 'X', 'j', '7477', '3877']
answer:
P, u, X


question:
1, ['6107', '9057', '3107', 'Y', '9471']
answer:
6107, 9057, 3107, Y


question:
3, ['8761', '8327', 'U', 'q', '3797', '9115', '7565', 'K', 'y', '7591', '3411', 'Z', '9419', '4503', 'w', '217', '9109', 'v', '55', 't', 'H']
answer:

8761, 8327, U, q, 3797, 9115, 7565, K, y, 7591, 3411, Z, 9419, 4503, w, 217, 9109, v