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, ['5973', 'V', '2031', 'H', '6779', '8931', 'H', 'Z', '7833', 'P', '1749']
[EX A]: 5973, V, 2031, H, 6779, 8931

[EX Q]: 3, ['9497', 'X', 'E', '7311', '2509', 'e', 'L', 'r', 'I', 'n', 'k', '2369', 'b', 'x', 'L', '6093', '6785', '4401', 'U', '5645', 'P', '6837', 'p']
[EX A]: 9497, X, E, 7311, 2509, e, L, r, I, n, k, 2369, b, x, L, 6093, 6785, 4401, U, 5645

[EX Q]: 14, ['T', 'C', '6565', '7205', 'T', '3011', '2773', 'P', '209', '9241', '615', 'S', 'L', '3695', 'O', 'i', '241', 'T', '1061', 'a', '1009', '45', 't', 'E', '5333', 'T', '443', '5831', 'k', 'q']
[EX A]:
T, C, 6565, 7205, T, 3011, 2773, P, 209, 9241, 615, S, L, 3695, O, i