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, ['6587', 'e', 't', 'F', 'g', '9487', '7565', 'k', 'R', 'F', '6891', '143', 'k', '327', '3797', 'C', 'P', 'P', '5053', '7441', 'm', '5799', 'Q']
6587, e, t, F, g, 9487, 7565, k, R, F, 6891, 143, k, 327, 3797, C, P, P, 5053, 7441, m, 5799

1, ['P', 'Q', '2335', 'Z', 'B', '4397', '8329', 'S', 'N', '9733', '4569', 'Z', 'G', '1243', '7337', '2581', '3033', '9325', '7911', '1175', 'G', '4717', '4581', 'e', '4439', 'i', 'J', '9957']
P, Q, 2335, Z, B, 4397, 8329, S, N, 9733, 4569, Z, G, 1243, 7337, 2581, 3033, 9325, 7911, 1175, G, 4717, 4581, e, 4439, i, J

5, ['q', '533', '8617', '307', 'q', '3717', 'F', 'z', 'E', 'M', 'i', 'N']

q, 533, 8617, 307, q, 3717, F