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]: 8, ['3863', '9427', '8093', 'g', '7711', 'T', 'h', 'i', 'a', '4435', 'V', '9541', '1355', '3987', 'w', 'r', '9843', '2299', 'N', '4891', 'w', '1907', '9111', '6405', 'l', '5311', '3407']
[EX A]: 3863, 9427, 8093, g, 7711, T, h, i, a, 4435, V, 9541, 1355, 3987, w, r, 9843, 2299, N

[EX Q]: 4, ['2977', 'l', '3667', 'n', 'D', '651', '1461', 'V', 'D', 'T', '6197', '5759', '6809', 'v', '3891', '555', 'o', '7133', 'Q', '6053']
[EX A]:
2977, l, 3667, n, D, 651, 1461, V, D, T, 6197, 5759, 6809, v, 3891, 555