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]: 2, ['A', 'w', '4031', '5175', 'H', '4627', '8031', 'Z', 'u', '5489', '1145', '1173', '5959', '5695', 'b', '9535', '8215', 'x', 'U', 'V', '773']
[EX A]: A, w, 4031, 5175, H, 4627, 8031, Z, u, 5489, 1145, 1173, 5959, 5695, b, 9535, 8215, x, U

[EX Q]: 7, ['E', '7593', '2777', 'g', '9021', '3847', 'e', 'C', 'O', '7139', '8815', 'v', '9409', 'B', '8067', 'J', '1811', '7405', '6379', 'a', 'Z', '9245']
[EX A]: E, 7593, 2777, g, 9021, 3847, e, C, O, 7139, 8815, v, 9409, B, 8067

[EX Q]: 4, ['7301', '6999', '6157', '235', 'a', '5619', 'S', '2105', '4675', 'N', '461', 'p', 'U', '8515', 'H', 'h', '6803']
[EX A]:
7301, 6999, 6157, 235, a, 5619, S, 2105, 4675, N, 461, p, U