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]: 1, ['Q', 'J']
[A]: Q


[Q]: 1, ['6109', 'd']
[A]: 6109


[Q]: 9, ['q', '8871', '5859', 'B', '6297', '4227', 'G', 'L', '8293', 'T', '4539', 'Z', 'W', 'x', '1259', '823', '2627', 'E', 'm', 'S', 'y', 'v', '2777', 'x', 'o', 'w', '2989', '245', '8777', '8347']
[A]:
q, 8871, 5859, B, 6297, 4227, G, L, 8293, T, 4539, Z, W, x, 1259, 823, 2627, E, m, S, y