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]: 2, ['7289', '5445', 'I', 'M', 'A', '523', '3831', 'd', 'k', 'H', 'B', 'f', 'J', '3723', '5911', 'n', 'P', '1647', 'F', '4287', '5909', '2037', 'u', '3593', 'x', '7863']
[EX A]: 7289, 5445, I, M, A, 523, 3831, d, k, H, B, f, J, 3723, 5911, n, P, 1647, F, 4287, 5909, 2037, u, 3593

[EX Q]: 5, ['j', 'Q', '6289', 'K', '8341', '2631', '2421', '7539', 'h', '4761', 'K', '7323', 'i', 'X', 'y', '6981', 'P', '7335', 'h', 'H']
[EX A]: j, Q, 6289, K, 8341, 2631, 2421, 7539, h, 4761, K, 7323, i, X, y

[EX Q]: 1, ['p', '139', '687', '4961', '4795', 'o', 'b', 'K', 'd', 'I', 'M', 'W', '5525', 'K', 'k', '8047', '6327', 'y', '6639', '507', 'd', '6217', '1455', 'E', 'G', 't', 'f', 'C', '8861', '8481']
[EX A]:
p, 139, 687, 4961, 4795, o, b, K, d, I, M, W, 5525, K, k, 8047, 6327, y, 6639, 507, d, 6217, 1455, E, G, t, f, C, 8861