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, ['D', '3039', '9407', '8733', 'm', 'e', 'a', 'A', '595', 'c', 'M', '3127', 'k', '9125', 'd', 'u', 'x', '3267', '4779', '9825', '6539', '5735', '9161']

Answer: D, 3039, 9407, 8733, m, e, a, A, 595, c, M, 3127, k, 9125, d, u

Question: 6, ['909', '9935', '8651', '6685', '8645', '1675', 'g', 'L', 'f', 'T', '5367', 'k', 'M', '5485', 'j', 'z', 'U', 'Y', '1345', 'I', 'o', '623', '7885', '6679', 'y', '1103']

Answer: 909, 9935, 8651, 6685, 8645, 1675, g, L, f, T, 5367, k, M, 5485, j, z, U, Y, 1345, I

Question: 8, ['w', '2167', '7919', 'f', 'J', '5199', '1945', '1205', '4407', '5633', '2697', 'e', '4593', '971', '9065', 'm', '9675', '1023', '557', 'G', '3613']

Answer:
w, 2167, 7919, f, J, 5199, 1945, 1205, 4407, 5633, 2697, e, 4593