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]: 6, ['6381', 'u', 'd', '7355', 't', 'X', 'n', 'S', 's', 'n', '3703', '6983', '3767', 'm', 'z']
[A]: 6381, u, d, 7355, t, X, n, S, s


[Q]: 1, ['8719', '2065', '6543', '1651', '7037', 'v', '3919']
[A]: 8719, 2065, 6543, 1651, 7037, v


[Q]: 10, ['Z', '2539', 'M', '355', '7759', 'N', 'I', '8421', '9709', '9549', 'd', 'M', '8333', 'M', 'i', '9129', '4447', 'b', '1107', 'h', 'R', 'c', 'I', '3677', '7757', 'O', '1459', '5445', '1725', 'H']
[A]:
Z, 2539, M, 355, 7759, N, I, 8421, 9709, 9549, d, M, 8333, M, i, 9129, 4447, b, 1107, h