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.
--------
Question: 4, ['9837', '9419', 'D', '1877', 'Q', '2375', '1141', 'i', 'x']

Answer: 9837, 9419, D, 1877, Q


Question: 5, ['z', 'x', '6723', 'X', 'B', '9233', '4475', '5569', 'l', '9069']

Answer: z, x, 6723, X, B


Question: 7, ['S', '9605', 'Z', '2219', '5031', 'T', '1611', 'j', '9721', '9909', 'R', '2337', '3531', '9263', 'Y']

Answer:
S, 9605, Z, 2219, 5031, T, 1611, j