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, ['a', 'U', '1091', '6791', '5761', '5235', 'q', 'f', 's', '2023', 'u', 'N', 'H', 'D', '479', 'q']
[EX A]: a, U, 1091, 6791, 5761, 5235, q, f, s, 2023, u

[EX Q]: 2, ['2559', 'z', 'J', 'Z']
[EX A]: 2559, z

[EX Q]: 5, ['6757', '1851', 'm', '1265', 'A', '1739', '4791', 'b', 'B', '9329', 'B', '207', '1021', '1481', '6899', 'C', 'y', 'w', '8809', '2689', 'c', 'H', '4565', 'x', 'Y', '6103', 'p', '3995']
[EX A]:
6757, 1851, m, 1265, A, 1739, 4791, b, B, 9329, B, 207, 1021, 1481, 6899, C, y, w, 8809, 2689, c, H, 4565