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]: 3, ['O', '4045', 'd', 'r', 'h', '3903', 'I', '5309', '7833', 'c', '7265', 'X']
[EX A]: O, 4045, d, r, h, 3903, I, 5309, 7833

[EX Q]: 1, ['D', 'X', 'M', '3281', 't', '5373', '5539', 'r', '1655', 'S', 'v', 'r', '5935', '3859', 'd', 'z', 'L', 'Z']
[EX A]: D, X, M, 3281, t, 5373, 5539, r, 1655, S, v, r, 5935, 3859, d, z, L

[EX Q]: 2, ['O', '4839', 'D', 'y', '4845', 'i', 'l', '965', '5905', '9523', 'y', '4489', '7145', 'J', '4373', 'o', 'H', '4343', 'D', 'H', '8883', '6039', 't', '8743', 's', '5565', '6221', '5133', '8923', 'd']
[EX A]:
O, 4839, D, y, 4845, i, l, 965, 5905, 9523, y, 4489, 7145, J, 4373, o, H, 4343, D, H, 8883, 6039, t, 8743, s, 5565, 6221, 5133