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.

1, ['p', '8309', '1559', 'M', '9065']
p, 8309, 1559, M

1, ['p', '1469', '7097']
p, 1469

4, ['2245', 'O', '6633', 'o', '5713', 'N', '3649', 'm', 'F', 'e', '9651', 'm', '9031', 'n', 'W', 'O', 'f', 'g', 'v', 'L', '9285', 'w', 'K', '2227', 'C', 'P', 'I', 'Y']

2245, O, 6633, o, 5713, N, 3649, m, F, e, 9651, m, 9031, n, W, O, f, g, v, L, 9285, w, K, 2227