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.

[Q]: 13, ['y', '8539', '875', '5703', 'G', '6099', 'G', '8579', 'p', 'r', 'O', '2387', 'S', 'L', 'V', 'U', 'C', 'R', 'Z', '4991', '7897', '4887', '391', 'a', '2195', '6605', 'F', 'U']
[A]: y, 8539, 875, 5703, G, 6099, G, 8579, p, r, O, 2387, S, L, V


[Q]: 3, ['323', 'C', 'R', '5703', 'E', '1017', '4417', 'W', '2391', '7173', '1207', '7323', 'v', 'Q', '9621', 'N', '2419', 'o', 'v', 'B']
[A]: 323, C, R, 5703, E, 1017, 4417, W, 2391, 7173, 1207, 7323, v, Q, 9621, N, 2419


[Q]: 1, ['n', 'G', 'j', 'n', 'K', 'g', '4201', 'X', '1543', 'o', '7037', '245', 'R', 'C', 'A', '3369', '2871']
[A]:
n, G, j, n, K, g, 4201, X, 1543, o, 7037, 245, R, C, A, 3369