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: 8, ['3149', '7327', '8513', '4681', 'O', '5083', 'A', 'z', '5367', '3713', '8887', 'U', '23', '8091', 'A', 'k', 'F', 's', 'Y', '2217', '6479', 'F', '2239', '3305', 'N', '8459', '667', 'D', 'j']

Answer: 3149, 7327, 8513, 4681, O, 5083, A, z, 5367, 3713, 8887, U, 23, 8091, A, k, F, s, Y, 2217, 6479


Question: 1, ['C', '9777', 'V', '7481', '4737']

Answer: C, 9777, V, 7481


Question: 4, ['3947', 'B', '4273', 'G', 'M', 'n', '7727', '7031', '8013', 'x', '4227', 'q']

Answer:
3947, B, 4273, G, M, n, 7727, 7031