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]: 4, ['3057', '7783', 'o', 'M', '9309', 'V', '1425', 'X', 'f', 'y', 'q', '2831', 'y', 'A', '5567', 'c', '8645', 'S', 'd']
[EX A]: 3057, 7783, o, M, 9309, V, 1425, X, f, y, q, 2831, y, A, 5567

[EX Q]: 10, ['3881', 'g', 'Z', 'G', 'a', '7571', '6761', 'i', 'X', '9349', '4007', 'i', 'W', '2989', 'W', 'B', '6747', 'S', 'p', 'O', 'U', '5469']
[EX A]: 3881, g, Z, G, a, 7571, 6761, i, X, 9349, 4007, i

[EX Q]: 1, ['351', 'c', '7247', 'q', 'r', '5035', 'b', 'R', 'd', '359', '8447', '4393', '5499', 'H', '6665', '8107', 'I', '7243', 'x']
[EX A]:
351, c, 7247, q, r, 5035, b, R, d, 359, 8447, 4393, 5499, H, 6665, 8107, I, 7243