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, ['781', 'x', 'v', 'G', 'k', '4317', '6855', 'D', 'S', 'z', '8161', '2497', '255', 'N', 'F', 'X', 'W', 'D', '2873', '8385', 'M', '8043', 'z']
[EX A]: 781, x, v, G, k, 4317, 6855, D, S, z, 8161, 2497, 255, N, F, X, W, D, 2873

[EX Q]: 2, ['g', 'U', 'd', 'I', 'b', 'b', 'e', 'N', 'O', '5349', 'd', 'c', '7211', 'n', '9591', 'W', 'D', '4453']
[EX A]: g, U, d, I, b, b, e, N, O, 5349, d, c, 7211, n, 9591, W

[EX Q]: 4, ['R', 'w', '6793', 'e', '9057', '441', '1445', '9137', 'V', '1297', 'v', '531']
[EX A]:
R, w, 6793, e, 9057, 441, 1445, 9137