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]: 2, ['8817', '3439', '8059', '703', '5885', '3175', 'x', '7971', 'f', '3897', 'e', 'B', '6923', 'Y', 'z', 'D', 'Z']
[EX A]: 8817, 3439, 8059, 703, 5885, 3175, x, 7971, f, 3897, e, B, 6923, Y, z

[EX Q]: 3, ['P', 'M', '2477', '3191', '9855', 'v', 'F']
[EX A]:
P, M, 2477, 3191