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, ['6017', '7', '1901', '5969', '3385', 'n', '4095', '441', '2859', 'l', 'D', '3235', '471', '1803', '689', '5093', '4535', 'p', 'M', '3501', 'a', 'o', '3333', 'C', '3187', '5161', '1717']
[A]: 6017, 7, 1901, 5969, 3385, n, 4095, 441, 2859, l, D, 3235, 471, 1803, 689, 5093, 4535, p, M


[Q]: 7, ['S', 'W', '8205', '5065', '7121', 'g', '3045', 'A', '239', '6759', 'G', 'e', '8499', 'h', 'W', 'x', '3699']
[A]: S, W, 8205, 5065, 7121, g, 3045, A, 239, 6759


[Q]: 12, ['N', '4889', '5083', 'D', 'D', 'I', '5991', '4751', '4533', '8737', '7165', '2551', 'L', '4873', '175', 't', 'u', 'X', 'm', '1857', '4753', 'Y', 'q', 'Z', 'o', 'H', 'j', 'H', 'N', '2239']
[A]:
N, 4889, 5083, D, D, I, 5991, 4751, 4533, 8737, 7165, 2551, L, 4873, 175, t, u, X