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, ['5957', '3849', '607', '7883', 'y', 'y', '3165', '2541', 'z', 'g', '6123', 'q', '527', 'q', '8515', '1189', 't', 'e', 'j', '1389', '7571', '7485', '1017', '3799', '6519']
[A]: 5957, 3849, 607, 7883, y, y, 3165, 2541, z, g, 6123, q, 527, q, 8515, 1189, t, e, j, 1389, 7571, 7485, 1017


[Q]: 8, ['o', 'i', 'D', '8205', '7451', 'J', 'f', '5177', 'a', 'O', '4499', '8375', '8559', '2119', 'S', '2435', 'w', 'L', 'h', '2053', 's', 'j']
[A]: o, i, D, 8205, 7451, J, f, 5177, a, O, 4499, 8375, 8559, 2119


[Q]: 6, ['73', '8767', 'V', 'a', 'x', 'N', '5141', 'w', 'S', 'g', '1539', 'o', '9317', '5521', '923', '6621', 'F', 'e', 'o', '8655', '1343', 'j', 'f', 'g', '6605', '7145', '3325']
[A]:
73, 8767, V, a, x, N, 5141, w, S, g, 1539, o, 9317, 5521, 923, 6621, F, e, o, 8655, 1343