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.

Q: 2, ['6417', '8701', '5143', 'B', 'B', '8403', '4119', '5523', 'O', '9379', '5015', 'n', 'U', '1161', 'J', 'w', 'G', '6407', 'w', 'H', '2037', 'H', '8663', 'f', 'Z', '7127', 'w', 'C', '69', '6143']

A: 6417, 8701, 5143, B, B, 8403, 4119, 5523, O, 9379, 5015, n, U, 1161, J, w, G, 6407, w, H, 2037, H, 8663, f, Z, 7127, w, C
****
Q: 15, ['9033', '1873', 'n', '6945', '3003', '699', 'J', '3639', 'o', '7857', 'u', 'J', '8693', '935', 'd', 'A', '3509', 'c', 'L', 'H', '8777', 'W', 'G', '371', '6467', '6183', '9059', '4653', '8305', 'O']

A: 9033, 1873, n, 6945, 3003, 699, J, 3639, o, 7857, u, J, 8693, 935, d
****
Q: 4, ['P', 'j', 'Q', '9153', '2729', '7113', '6863', 'Z', 'Y', 'j', '9469', 'H', '1703', '5705', '2049', 'n']

A:
P, j, Q, 9153, 2729, 7113, 6863, Z, Y, j, 9469, H
****