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]: 3, ['T', 'g', '4755', 'O', 'G', 'Z', 'r', '9337', '2691', 'h', 'j', '4271', 'T', '5217', 'a', '9671']
[EX A]: T, g, 4755, O, G, Z, r, 9337, 2691, h, j, 4271, T

[EX Q]: 8, ['9417', '9391', '4331', 'q', '9721', 'w', '5021', '6915', '6291', 'U', 'B', 'H', '7511', '8761', 'w', '6675', '6919', '5193', 'e', '4799', '6435', 'D', '5285', 's']
[EX A]: 9417, 9391, 4331, q, 9721, w, 5021, 6915, 6291, U, B, H, 7511, 8761, w, 6675

[EX Q]: 3, ['2375', '6535', 'q', 'x', '8083', '8589', 'o', '343', 'v', 'N', '6497', 'l', 'h', 'Z', '335', '1999', 'i', '9739', '7253', 'm', 'q']
[EX A]:
2375, 6535, q, x, 8083, 8589, o, 343, v, N, 6497, l, h, Z, 335, 1999, i, 9739