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

[EX Q]: 1, ['8969', '1827', '437']
[EX A]: 8969, 1827

[EX Q]: 3, ['Y', '3449', '9989', '1833', 'Y', '3405', 't', '8647', 'j', 'h', '3109', '6899', 'S', '4763', '4579', '4365', '5461', '7881', '5223', '6357', '9561', 'm', 'q']
[EX A]:
Y, 3449, 9989, 1833, Y, 3405, t, 8647, j, h, 3109, 6899, S, 4763, 4579, 4365, 5461, 7881, 5223, 6357