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]: 3, ['P', 'u', 'X', 'j', '7477', '3877']
[A]: P, u, X


[Q]: 1, ['4887', '3163', 'l', 'C', 'h', '9737', '3845', '3531', 'u', 'r', '1461', '3167', '9285', '6655', 'p', 'm', 'l', '7663', '9635', '2167', 'G', 'q', 'N']
[A]: 4887, 3163, l, C, h, 9737, 3845, 3531, u, r, 1461, 3167, 9285, 6655, p, m, l, 7663, 9635, 2167, G, q


[Q]: 9, ['9191', '591', '835', '3097', 'D', '7389', '8357', 'L', 'F', '2581', 'V', 'I', '9677', '7865', 'x', 'h', '9263', '8653', '503', '1177', '775', 'Z', '4363', 'G', 'H', 'H', '9947', 'u']
[A]:
9191, 591, 835, 3097, D, 7389, 8357, L, F, 2581, V, I, 9677, 7865, x, h, 9263, 8653, 503