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]: 7, ['O', 'G', '303', 'J', '8545', 'u', '1983', 'u', '425', 't', '8249', 'i', '4727', '6039', 'k', '1927', 'z', '4429', '4131', '8543', '9127', 'J']
[EX A]: O, G, 303, J, 8545, u, 1983, u, 425, t, 8249, i, 4727, 6039, k

[EX Q]: 2, ['6137', 'f', 'I', '8297', 'd', 'L', '6471', '2965', 'H', '533', '2809', 'U', 'A', '7481', 'l', 'e', 'n', 'd', '6589', 'n', 'c', 'X', 'I', 'I', '3217']
[EX A]: 6137, f, I, 8297, d, L, 6471, 2965, H, 533, 2809, U, A, 7481, l, e, n, d, 6589, n, c, X, I

[EX Q]: 12, ['S', '5197', 'h', '5197', '3583', '7945', '2449', 'd', '7397', 'X', '7693', '7987', '4465', 'T', 'm', '5755', 'D', 'l', 'Q', 'S', 'x', 'V', 's', 'i', 'y', '9583']
[EX A]:
S, 5197, h, 5197, 3583, 7945, 2449, d, 7397, X, 7693, 7987, 4465, T