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]: 5, ['6395', '6931', 'e', '6777', 'x', 'k', 'r', '8745', '6787', '9237', 'e', '6301', '6663', 'w']
[EX A]: 6395, 6931, e, 6777, x, k, r, 8745, 6787

[EX Q]: 9, ['e', '1509', '2895', '4747', 'i', '7541', '6273', '1271', 'f', '8157', 'h', '3091', '6259', 'a', 'S', 'c', 'S', '7737', 'p', 'T', 'z', '6117', '6627', '9999', '1011', 'l', 'K']
[EX A]: e, 1509, 2895, 4747, i, 7541, 6273, 1271, f, 8157, h, 3091, 6259, a, S, c, S, 7737

[EX Q]: 12, ['g', 'v', '801', '2367', '5237', 'E', '5517', '6425', '9091', 'A', 'h', 'h', '8377', '345', 'j', 'I', 'u', 'h', 'q', 'A', '7265', '5293', 'i', 'S', '2549', '1027', 'F', 'j', 'D', 't']
[EX A]:
g, v, 801, 2367, 5237, E, 5517, 6425, 9091, A, h, h, 8377, 345, j, I, u, h