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, ['5109', 'f', 'c', '8429', 'e', 'k', 'q', 'h', '9773', 'j', '6643', '2019', '2625', 'y', '375', '649', '9901', '6511', '9219', 'd']
[EX A]: 5109, f, c, 8429, e, k, q, h, 9773, j, 6643, 2019, 2625, y, 375, 649, 9901

[EX Q]: 9, ['6213', '5491', '9761', 'L', '3875', 'I', '8323', 'G', 'N', '1499', 'h', '8975', '6511', 'g', 'b', 'N', 'g', '8115', 'Y', 'j', 'h', '9215', '401', '701', 't']
[EX A]: 6213, 5491, 9761, L, 3875, I, 8323, G, N, 1499, h, 8975, 6511, g, b, N

[EX Q]: 2, ['R', '9155', '7387', 'i', '7377', '2551', '8341', 'P', 'O', 'H', '4869', '4761', '1249', '1419', '1515', 'j', 'x', '3743', 'I', 'n', '5865', '2117', 'H', 'V', '8103', 'f', '7961', '5779', 'E']
[EX A]:
R, 9155, 7387, i, 7377, 2551, 8341, P, O, H, 4869, 4761, 1249, 1419, 1515, j, x, 3743, I, n, 5865, 2117, H, V, 8103, f, 7961