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]: 6, ['8827', '6021', '6397', '71', 'u', 'l', '4735', '4253', '2233', '7871', 'j', '5375', '4627', 'E', '2221', 'P', '3249', 'Z']
[A]: 8827, 6021, 6397, 71, u, l, 4735, 4253, 2233, 7871, j, 5375

[Q]: 1, ['i', '1499', '4503', '195', 'x', 'h', 'x', '9265', 'O', 'p', '5391', 'y', 'C', '6211', 'Y', '7911', 'r']
[A]: i, 1499, 4503, 195, x, h, x, 9265, O, p, 5391, y, C, 6211, Y, 7911

[Q]: 8, ['e', '7531', 'b', '2455', '7829', '7961', 'Y', '883', '7337', 'E', '507', '2101', '3867', 'Q', 'i', '6899', '1187', '3403', 'h', '2229']
[A]:
e, 7531, b, 2455, 7829, 7961, Y, 883, 7337, E, 507, 2101