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, ['2559', 'z', 'J', 'Z']
2559, z

1, ['N', 'u', 'k', '2923', 'P', 'o']
N, u, k, 2923, P

10, ['Z', '5147', '2753', '6815', '4525', '9399', 'Q', 'Q', 'C', 'B', 'A', 'r', 'H', 'd', 'c', 'k', '9325', 'r', '5699', '4813', '2327', 'k', '1131', '7537', 'w', 'I', 'c', 'h']

Z, 5147, 2753, 6815, 4525, 9399, Q, Q, C, B, A, r, H, d, c, k, 9325, r