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.

5, ['9711', '8403', '2867', '3617', '7597', '2907', '7559', '4999', '7697', '1839']
9711, 8403, 2867, 3617, 7597

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

1, ['6547', 'B', 'V', '8829', '8157', '9279', '6271', 'G', 'P', '5193', 'H', 'f', 'C', '5343', '6795', '8157', '8035', 'Y', 'w', 'z', '6389', '5973', 'R']

6547, B, V, 8829, 8157, 9279, 6271, G, P, 5193, H, f, C, 5343, 6795, 8157, 8035, Y, w, z, 6389, 5973