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.

2, ['G', 'I', 'x', 'h', 'x', '4129', '63', 'm', 'e', '471', '2613', '5909', 'o', '8037']
G, I, x, h, x, 4129, 63, m, e, 471, 2613, 5909

4, ['5263', '8669', '8175', 't', 'a', 'c', '217', '891']
5263, 8669, 8175, t

2, ['9617', 't', 't', 'E', 'F', '9247', '5777', 'f', '5829', '6567']

9617, t, t, E, F, 9247, 5777, f