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.

[EX Q]: 2, ['4785', 'g', '7381', 'J', 'R', 'e', 'N', 'v', '6201', 'Y', 'h', 'e', '7723', 'Y', 'm']
[EX A]: 4785, g, 7381, J, R, e, N, v, 6201, Y, h, e, 7723

[EX Q]: 7, ['7721', 'W', 'o', 'R', '2933', 'N', '9829', '707', 'A', 'a', '8035', 'i', 'B', 'j', '319', 'v', '5879']
[EX A]: 7721, W, o, R, 2933, N, 9829, 707, A, a

[EX Q]: 1, ['z', '7023', 'L', 'L', 'd', '9831', 'G', '2303', 's', '2375']
[EX A]:
z, 7023, L, L, d, 9831, G, 2303, s