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, ['8593', 'X']
[EX A]: 8593

[EX Q]: 5, ['5315', '8773', 'Z', '4873', 'r', '2929', 'K', 'y', '4997', '6739', 'U', 'j']
[EX A]: 5315, 8773, Z, 4873, r, 2929, K

[EX Q]: 3, ['g', '1131', 'i', '3153', '6705', '8975', '7303', 'W', '5705']
[EX A]:
g, 1131, i, 3153, 6705, 8975