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]: 10, ['1647', 'E', 'J', 'B', 'S', 'X', '7779', '931', 'N', 'k', 'o', '1049', 'e', '4723', 'u', 'r', 'O', 'E', '6311', 'F', '4437']
[A]: 1647, E, J, B, S, X, 7779, 931, N, k, o


[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, ['6085', '6315', 'h', 'K', 'R', '1', '8471', '321', 'p', '2565', '8325', 'E', '4567', 'e', 'b', '2221', 'T', '5603', '2947']
[A]:
6085, 6315, h, K, R, 1, 8471, 321, p, 2565, 8325