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]: 5, ['l', '1473', '6251', '1565', '4141', '1871', 's', 'v', 'y', 'd', '2539', '1435', '6661', '1285', '6317', '9047', '2543', 'u', '3483', 'y', '8777', 'y', '4333', 'C']
[A]: l, 1473, 6251, 1565, 4141, 1871, s, v, y, d, 2539, 1435, 6661, 1285, 6317, 9047, 2543, u, 3483

[Q]: 5, ['2183', '8329', '9027', 'V', '8953', 'y', 'P', 'a', '1215', '9759', '5021', 'L', 'c', '6181', '4637', 'i', '2985', 'S', '3107', '8439', '6093', 'Y', 'B', '895']
[A]: 2183, 8329, 9027, V, 8953, y, P, a, 1215, 9759, 5021, L, c, 6181, 4637, i, 2985, S, 3107

[Q]: 1, ['g', 'M', 'h', '3303', '3417', '537', '6757', '1195', '2255', 'm', '5015', 'Q', '2195', 'T', 'r', 'P', 'P', '129', '6149', '2035', 'B', '249', 'I', 'i', 't']
[A]:
g, M, h, 3303, 3417, 537, 6757, 1195, 2255, m, 5015, Q, 2195, T, r, P, P, 129, 6149, 2035, B, 249, I, i