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.

[EX Q]: 1, ['p', '8843']
[EX A]: p

[EX Q]: 1, ['7243', 'L', '5821', '1727', '4231', '5257', '1493', '6457', '6165', 'J', '7105']
[EX A]: 7243, L, 5821, 1727, 4231, 5257, 1493, 6457, 6165, J

[EX Q]: 2, ['i', 'F', 'P', '6789', 'l', 'K', 'F', '2825', '5209', 'a', '2129', 'b', '3647', '145', 'l', '4393', 'l', '7091', '8717', '479', 'U', 'B', '4735', 'S', 'm', 'y', 'C', '2953']
[EX A]:
i, F, P, 6789, l, K, F, 2825, 5209, a, 2129, b, 3647, 145, l, 4393, l, 7091, 8717, 479, U, B, 4735, S, m, y