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]: 1, ['P', 'Q', '2335', 'Z', 'B', '4397', '8329', 'S', 'N', '9733', '4569', 'Z', 'G', '1243', '7337', '2581', '3033', '9325', '7911', '1175', 'G', '4717', '4581', 'e', '4439', 'i', 'J', '9957']
[EX A]: P, Q, 2335, Z, B, 4397, 8329, S, N, 9733, 4569, Z, G, 1243, 7337, 2581, 3033, 9325, 7911, 1175, G, 4717, 4581, e, 4439, i, J

[EX Q]: 10, ['B', '9661', 'L', 'A', '8735', '5487', 'n', 'd', 'h', '6199', '5419', 't', '7899', '2907', '725', '4153', '6577', 'Q', '5947', 'B']
[EX A]: B, 9661, L, A, 8735, 5487, n, d, h, 6199

[EX Q]: 4, ['7667', 'C', 'a', 'p', 'X', 'i', '7457', 'g', 'b', 'w', 'W', '47', '1637', '8399', 'X', 'F']
[EX A]:
7667, C, a, p, X, i, 7457, g, b, w, W, 47