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]: 2, ['821', 'U', '8533', 'q', '6011', '3347', '3055', '5687', '9103', 'C']
[A]: 821, U, 8533, q, 6011, 3347, 3055, 5687

[Q]: 8, ['m', '4399', '9663', 'e', 'A', 't', '5629', '1611', '3415', 'F', 'x', 'H', 'E', '8461', '2341', '3385', '6163', '2239', '2189', '8123', 'y', 'D', '9571', '7377', '4305', 'l', '2901', 'O', '6273']
[A]: m, 4399, 9663, e, A, t, 5629, 1611, 3415, F, x, H, E, 8461, 2341, 3385, 6163, 2239, 2189, 8123, y

[Q]: 4, ['5733', 'p', '1803', 'u', 'V', '699', '1419', '4533', 'c', 'y', 'E', '3515', 'h', '6155', '3667', '971', '4665', '1191', '8783', 'G', 'u', 'c', 'F', 'I', 'l', '3475', '2371', 'a']
[A]:
5733, p, 1803, u, V, 699, 1419, 4533, c, y, E, 3515, h, 6155, 3667, 971, 4665, 1191, 8783, G, u, c, F, I