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]: 3, ['8565', '6837', 'v', 'X', 'E', '8315', '3451', '2403', '8065', '2179', 'n', '2151', '2325']
[EX A]: 8565, 6837, v, X, E, 8315, 3451, 2403, 8065, 2179

[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]: 5, ['2699', '6457', '197', 'G', '5289', '9997', 'w', '5331', '6519', 'C', 'r', 'x', '1835', '3791', '6193', '9909']
[EX A]:
2699, 6457, 197, G, 5289, 9997, w, 5331, 6519, C, r