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, ['839', '5995', '359', '497', '7397', 'g', 'T', 'o', 'd', '8979', 'h', 'e', '497', 'Y', '4977']

Answer: 839, 5995, 359, 497, 7397, g, T, o


Question: 3, ['8479', 'I', 'b', '3759', 'P', '4853']

Answer: 8479, I, b


Question: 2, ['2671', '9415', '7171', 'd', '7761', 'R', 'r', 'X', 'f', '327', '6907', 'L', '4743', 'J', '4067', '8667', 'c', '9611', 'R', 'u', '8463', 'z', '1921', '799', '9793']

Answer:
2671, 9415, 7171, d, 7761, R, r, X, f, 327, 6907, L, 4743, J, 4067, 8667, c, 9611, R, u, 8463, z, 1921