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, ['9331', '9975', 'G', 'p', '2841', 'U', 'n', 'f', 'w', 'l']
[EX A]: 9331, 9975, G, p, 2841

[EX Q]: 2, ['231', 'U', '9227', '5663', 'a', 'F', 'Y', 'n', 'i', 'N', 'D', 'u', 'I', 'g', '1759', '6709', '9711', 'z', 'M', '6325', '4901', '3913', '1679', 'z', 'h', '7103', 'R', '9963', 'D', '5259']
[EX A]: 231, U, 9227, 5663, a, F, Y, n, i, N, D, u, I, g, 1759, 6709, 9711, z, M, 6325, 4901, 3913, 1679, z, h, 7103, R, 9963

[EX Q]: 4, ['J', 'A', '1309', 'z', '9857', 'n', '2421', 'L', 'N', 'N', '2055', '2707', 'k', '2631', '5195', 'A', '9759', 'Y', 'Z', '7747', '6803', 'c', '749']
[EX A]:
J, A, 1309, z, 9857, n, 2421, L, N, N, 2055, 2707, k, 2631, 5195, A, 9759, Y, Z