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]: 2, ['5957', '3849', '607', '7883', 'y', 'y', '3165', '2541', 'z', 'g', '6123', 'q', '527', 'q', '8515', '1189', 't', 'e', 'j', '1389', '7571', '7485', '1017', '3799', '6519']
[A]: 5957, 3849, 607, 7883, y, y, 3165, 2541, z, g, 6123, q, 527, q, 8515, 1189, t, e, j, 1389, 7571, 7485, 1017


[Q]: 7, ['4909', '8255', 'o', '5105', '9655', '7121', 'T', 'T', '3245', 'r', '367', 'S', '2591', '7163', 'L', 'n', 'k']
[A]: 4909, 8255, o, 5105, 9655, 7121, T, T, 3245, r


[Q]: 5, ['1795', 'm', '729', '8779', 's', '7141', '1705', 'X', '3087', 'L', '839', '6345', 'Y', '7677', 'J', 'u', 'B', '1359', 'K', '5319', 'B', 'e', '8405', '3035', 'X', 'W']
[A]:
1795, m, 729, 8779, s, 7141, 1705, X, 3087, L, 839, 6345, Y, 7677, J, u, B, 1359, K, 5319, B