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, ['A', 'w', '9367', 'j', 'J', '457', 'z', 'C', 'V', 'S', 'P', '8791', '8675', '2373', 'w', 'B', 'p', 'y', '1057', '4815', '5749', 'v', '1123', 'f', 'p']

A: A, w, 9367, j, J, 457, z, C, V, S, P, 8791, 8675, 2373, w, B, p, y, 1057, 4815
****
Q: 8, ['4647', '6043', 'f', '6015', '289', 'f', 'E', '1355', 'e', 'y', 'i', '1279', '9563', 'c', 'U', 'd', '4333', '2351', 'Y', 'E', 'o', '4973', '475', '7943', '3199']

A: 4647, 6043, f, 6015, 289, f, E, 1355, e, y, i, 1279, 9563, c, U, d, 4333
****
Q: 12, ['r', 'L', 'l', '2477', 'W', 'q', 'H', '3877', '145', '3889', '9375', '9333', 't', 'Z', '7893', '85', 'p', 'u', 'Z', '7929', 'E', 't', 'U', '2513', 'D']

A:
r, L, l, 2477, W, q, H, 3877, 145, 3889, 9375, 9333, t
****