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]: 13, ['h', 'm', 'l', '9319', '2491', 'K', 'A', '8771', 'R', '9885', 'X', '2361', '1615', '9081', '8833', '367', 'e', '1515', 'b', '1581', 'E', 'S', '5521', '7891', '6061', 'n']
[A]: h, m, l, 9319, 2491, K, A, 8771, R, 9885, X, 2361, 1615


[Q]: 4, ['7539', '5355', '5163', '393', 'U', '9923', 'E', 'H', 'A', 'K', 'o', 'N', 'Z', 'c']
[A]: 7539, 5355, 5163, 393, U, 9923, E, H, A, K


[Q]: 5, ['6569', 'o', 'f', 'r', '7561', 'R', '9471', 'Y', 'X', 'k', '3163', 'z', 'H', 'j', '1929', '9997', 'G']
[A]:
6569, o, f, r, 7561, R, 9471, Y, X, k, 3163, z