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: 1, ['8317', 'T', '5809', 'q', '2317', '7535', '2891']

Answer: 8317, T, 5809, q, 2317, 7535


Question: 7, ['S', 'W', '8205', '5065', '7121', 'g', '3045', 'A', '239', '6759', 'G', 'e', '8499', 'h', 'W', 'x', '3699']

Answer: S, W, 8205, 5065, 7121, g, 3045, A, 239, 6759


Question: 12, ['l', '3397', 'S', 'o', '3235', '4403', 'm', 'g', 'r', '1145', 'A', 'y', '169', '7923', '3499', 'b', 'b', 'P', '1997', '7937', '9297', 'g', '3917', 'W', '8233', 'x']

Answer:
l, 3397, S, o, 3235, 4403, m, g, r, 1145, A, y, 169, 7923