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: 1, ['D', 'X', 'M', '3281', 't', '5373', '5539', 'r', '1655', 'S', 'v', 'r', '5935', '3859', 'd', 'z', 'L', 'Z']

A: D, X, M, 3281, t, 5373, 5539, r, 1655, S, v, r, 5935, 3859, d, z, L
****
Q: 3, ['3287', '3313', '1501', '5179', 'S', 'n', '8371', 'Z', 'K', 'T', 'v', '7227', '8315', '6731', 'e', 'h', 'g', '4397']

A: 3287, 3313, 1501, 5179, S, n, 8371, Z, K, T, v, 7227, 8315, 6731, e
****
Q: 1, ['6119', '9111', 'D', 'c', '9465', '4749', '5217', '1111', '5109', 'Y', 'T', '5829', '8201', '3793', '3867', 'i', 'a', 'o', '2787', '8195', '2749', 'E', 'J']

A:
6119, 9111, D, c, 9465, 4749, 5217, 1111, 5109, Y, T, 5829, 8201, 3793, 3867, i, a, o, 2787, 8195, 2749, E
****