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: 5, ['5145', '3227', 'E', 'S', '3051', 'J', 'Y', '7723', 'e', '5787', '2113', 'D']

Answer: 5145, 3227, E, S, 3051, J, Y


Question: 1, ['7949', '795', '3941', '403', '8067']

Answer: 7949, 795, 3941, 403


Question: 12, ['f', '6327', '661', 'F', '1403', 'X', 'P', 'A', 'p', 'A', '6377', 'L', '903', '8571', 'G', 'P', 't', '9747', 'J', 'v', 'R', '4683', '3311', 'l', '7409', '8889', 'N', '9413', '9699']

Answer:
f, 6327, 661, F, 1403, X, P, A, p, A, 6377, L, 903, 8571, G, P, t