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: 2, ['977', 'Z', 'R', '8793', '2449', '2051', 'o', 'm']

Answer: 977, Z, R, 8793, 2449, 2051


Question: 7, ['7721', 'W', 'o', 'R', '2933', 'N', '9829', '707', 'A', 'a', '8035', 'i', 'B', 'j', '319', 'v', '5879']

Answer: 7721, W, o, R, 2933, N, 9829, 707, A, a


Question: 12, ['9789', '1943', 'I', 'k', 'D', '5609', 'X', 'n', 'E', '7003', 'T', 'h', '9991', '9195', '8677', 'A', 'G', '3047', '3337', 'W', '7503', '6753', 'H', '5979', '7963', '8789', '1793', 'a', '1539', 'G']

Answer:
9789, 1943, I, k, D, 5609, X, n, E, 7003, T, h, 9991, 9195, 8677, A, G, 3047