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.

Q: 2, ['R', 'S', '6131', '6103', '2787', 'p', '6131', '7353', 'e', '6111', 'B', '5377', '4403', '687', 'C', 'v', 'B', '2295', '2745', '3865', 'w', 'u', 'v', '6635']

A: R, S, 6131, 6103, 2787, p, 6131, 7353, e, 6111, B, 5377, 4403, 687, C, v, B, 2295, 2745, 3865, w, u
****
Q: 8, ['3149', '7327', '8513', '4681', 'O', '5083', 'A', 'z', '5367', '3713', '8887', 'U', '23', '8091', 'A', 'k', 'F', 's', 'Y', '2217', '6479', 'F', '2239', '3305', 'N', '8459', '667', 'D', 'j']

A: 3149, 7327, 8513, 4681, O, 5083, A, z, 5367, 3713, 8887, U, 23, 8091, A, k, F, s, Y, 2217, 6479
****
Q: 12, ['G', 'G', '7497', '3241', 'I', 'I', '7519', '8621', 'G', '1449', '3585', '7083', 'R', '1023', 'W', 'C', '3851', 'T', '1379', '8925', 'y', '5527', 'h', '5495', 'u']

A:
G, G, 7497, 3241, I, I, 7519, 8621, G, 1449, 3585, 7083, R
****