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, ['n', 'i', 'z', '2467']

A: n, i, z
****
Q: 3, ['p', '7857', 'h', '7041', '7917', '1685', 'o', 'P', '5675', 'W', 'Z', 'L', 'W', 'z', '3111', 'm', 'n', '8823', 'R', '5619', '9219', 'M', 'a', '4991', '7801', '8387', '7483', 'Q', '789']

A: p, 7857, h, 7041, 7917, 1685, o, P, 5675, W, Z, L, W, z, 3111, m, n, 8823, R, 5619, 9219, M, a, 4991, 7801, 8387
****
Q: 12, ['i', '8317', 'J', '3331', 'm', '4551', 'o', 'I', '5477', '3071', '5247', 'T', 'G', 'k', 'B', '8053', '6015', '2903', 'u', '6765', 'u', 'M', '6143', 'n', 'G', 'i', 'k']

A:
i, 8317, J, 3331, m, 4551, o, I, 5477, 3071, 5247, T, G, k, B
****