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.

4, ['9837', '9419', 'D', '1877', 'Q', '2375', '1141', 'i', 'x']
9837, 9419, D, 1877, Q

5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']
h, 5371, Y, E, 4733, 9039, w, p

12, ['n', 'c', 'R', '3419', 'V', '8031', '327', '6465', 'I', '5683', '9955', 'I', 'Q', '1223', 'R', 'd', 'u', 'd', '5213', '8279', '6469', '6593', 'p', '7657', 'y', 'a', 'u', 'u']

n, c, R, 3419, V, 8031, 327, 6465, I, 5683, 9955, I, Q, 1223, R, d