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, ['f', 'X', 'M', '4005', '1665', '1379', '2731', 'p', '3683', 'C', '9699', 'H', '4481', 'M', 'e', 'N', 'C']
f, X, M, 4005, 1665, 1379, 2731, p, 3683, C, 9699, H, 4481, M, e

3, ['Y', '3499', '2787', 'C', 'U', '4895']
Y, 3499, 2787

9, ['1151', 'N', 'z', '3641', '6541', '1485', '5575', '8765', '5865', '9677', '9613', '1457', '4449', '9629', 'o', 'g', '4289', '3983', '3253', '439', '3745', '5881', 'X']

1151, N, z, 3641, 6541, 1485, 5575, 8765, 5865, 9677, 9613, 1457, 4449, 9629