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]: 3, ['9861', 'h', '87', 'z', '805', 'M', '513', '9101', '1595']
[A]: 9861, h, 87, z, 805, M


[Q]: 1, ['4887', '3163', 'l', 'C', 'h', '9737', '3845', '3531', 'u', 'r', '1461', '3167', '9285', '6655', 'p', 'm', 'l', '7663', '9635', '2167', 'G', 'q', 'N']
[A]: 4887, 3163, l, C, h, 9737, 3845, 3531, u, r, 1461, 3167, 9285, 6655, p, m, l, 7663, 9635, 2167, G, q


[Q]: 7, ['2161', 'Y', 'n', 'c', 'G', 'w', 'e', 'm', 'S', 'Z', '6657', 'r', '4501', '5381', 'L']
[A]:
2161, Y, n, c, G, w, e, m