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: 4, ['5821', '5977', '5433', 'V', 'r', '8257', '9097', '1943', '8199', 'u', '6249', '559']

A: 5821, 5977, 5433, V, r, 8257, 9097, 1943
****
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: 10, ['c', '2459', 'Z', '221', '6821', 'D', 'i', '8517', 'R', 'F', 'b', 'Z', '8771', '5713', '2703', '3003', '2627', 'y', '4817', '2005', '2851', '5563', 'l', '3069', 'm', '6701', '3', '2337', '3693', 'T']

A:
c, 2459, Z, 221, 6821, D, i, 8517, R, F, b, Z, 8771, 5713, 2703, 3003, 2627, y, 4817, 2005
****