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.

[EX Q]: 5, ['H', '6247', '3419', 'a', 'g', 'b', 'S', '6077', 'L', '7419', 'C', '8475', '979', '7501', '4631', 'w', 'J', '7377']
[EX A]: H, 6247, 3419, a, g, b, S, 6077, L, 7419, C, 8475, 979

[EX Q]: 10, ['B', '9661', 'L', 'A', '8735', '5487', 'n', 'd', 'h', '6199', '5419', 't', '7899', '2907', '725', '4153', '6577', 'Q', '5947', 'B']
[EX A]: B, 9661, L, A, 8735, 5487, n, d, h, 6199

[EX Q]: 1, ['N', 'M', 'z', '3433', 'E', 'B', '4071', 'q', '3733', '91', 'P', '1947', 'e', '9065', '4901', '8611', '8163', '1799', 'v', 'e', 'e', '3943', '7', '2057', '793']
[EX A]:
N, M, z, 3433, E, B, 4071, q, 3733, 91, P, 1947, e, 9065, 4901, 8611, 8163, 1799, v, e, e, 3943, 7, 2057