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, ['9711', '8403', '2867', '3617', '7597', '2907', '7559', '4999', '7697', '1839']
[EX A]: 9711, 8403, 2867, 3617, 7597

[EX Q]: 1, ['6777', 'Z', '3523', '7653', '3293', '3215', '3581', 'M', '8025', 'i', 'R', '9139', '8597', '807', 'D', 'z', '8889', 'Y', '1729', 'S', 'U', 'D', '3385', 'N', '6383', 'V', 'i']
[EX A]: 6777, Z, 3523, 7653, 3293, 3215, 3581, M, 8025, i, R, 9139, 8597, 807, D, z, 8889, Y, 1729, S, U, D, 3385, N, 6383, V

[EX Q]: 9, ['1227', '8121', 'q', 'p', '7085', 'W', 'y', '6293', 'U', 'V', '625', '7271', 'Z', '8595', 'g', 'h', '6953', 'j', 'v', '807', '5171', '4717', '8997', '4857']
[EX A]:
1227, 8121, q, p, 7085, W, y, 6293, U, V, 625, 7271, Z, 8595, g