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.

10, ['Z', 'd', 'z', '1581', '1397', 'g', '4749', 'F', 'a', '3139', 'M', '2299', 'G', '2599', '7529', 'U', 'C', '4531', '1841', '4159', 'L', 'R', '8543', '2183', '223', 'g', '2019', 'X']
Z, d, z, 1581, 1397, g, 4749, F, a, 3139, M, 2299, G, 2599, 7529, U, C, 4531