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: 7, ['t', 'K', 'i', '2959', 't', '6067', 'R', 'B', 'i', 'S', 'k', '3319', 'c', '4817', 'U', 'Z', '1965', '7611', 'r', 'C']

Answer: t, K, i, 2959, t, 6067, R, B, i, S, k, 3319, c


Question: 4, ['9539', 'e', '4227', 'w', '3651', 'a', '9607', 'i', '9575']

Answer: 9539, e, 4227, w, 3651


Question: 2, ['r', 'z', 'n', 'f', 'x', 'F', '633', '7207', 'q', 'P', '4445', 'r', 'c', 'F', '8821', '425', 'F', '9689', '9419', 'j', 'T', '3097', '3149', 'c', 'w', 'U', '1153', 'i', 'K']

Answer:
r, z, n, f, x, F, 633, 7207, q, P, 4445, r, c, F, 8821, 425, F, 9689, 9419, j, T, 3097, 3149, c, w, U, 1153