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]: 8, ['G', '5365', 'g', 'D', '979', '2379', 'H', 'N', '4891', 'F', '9849', 'L', 'w', 'I', '1991', '6423', 'g', '4621', 'Z', 'a', '7349', 'z', '8711', '9559']
[A]: G, 5365, g, D, 979, 2379, H, N, 4891, F, 9849, L, w, I, 1991, 6423


[Q]: 3, ['2029', '1977', '3787', '5191', 'r', '589', '2539', '7135', '9819', '7501', 'k', '2491', 'h', '5173', '2983', 'S', 'Y', 'I', '7451', 'q', '2685', '6363', 'v', 'B', 'i']
[A]: 2029, 1977, 3787, 5191, r, 589, 2539, 7135, 9819, 7501, k, 2491, h, 5173, 2983, S, Y, I, 7451, q, 2685, 6363


[Q]: 8, ['413', '1223', 'r', 'r', 'a', '8219', 'N', 'a', 'z', 'g', '8297', 'y', 'c', '1569', 'x', '1343', '4263', 'e', 'n', '9349', 's', '4567', '4295', 'K', '6035', 'r', '4001', 'K']
[A]:
413, 1223, r, r, a, 8219, N, a, z, g, 8297, y, c, 1569, x, 1343, 4263, e, n, 9349