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, ['8817', '3439', '8059', '703', '5885', '3175', 'x', '7971', 'f', '3897', 'e', 'B', '6923', 'Y', 'z', 'D', 'Z']
8817, 3439, 8059, 703, 5885, 3175, x, 7971, f, 3897, e, B, 6923, Y, z

3, ['9565', 'Y', '6571', 'z', '9763', 'd', 'D', '8481', 'l', 'L', 'Z', '2295', 's', 'I', 'E', '8001', '9895', 'E', '3393']
9565, Y, 6571, z, 9763, d, D, 8481, l, L, Z, 2295, s, I, E, 8001

2, ['j', '5369', 'A', 'N', 'J']

j, 5369, A