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, ['D', '4719', 'E', 'B', 'Z', 'W', 'e', '7083', '167', 'p', 'z', '3405', 'I', 'g', '961', '2493', 'g', '7295', 'p', '6419', 'b', '2089']
[A]: D, 4719, E, B, Z, W, e, 7083, 167, p, z, 3405, I, g, 961, 2493, g, 7295, p, 6419

[Q]: 5, ['2183', '8329', '9027', 'V', '8953', 'y', 'P', 'a', '1215', '9759', '5021', 'L', 'c', '6181', '4637', 'i', '2985', 'S', '3107', '8439', '6093', 'Y', 'B', '895']
[A]: 2183, 8329, 9027, V, 8953, y, P, a, 1215, 9759, 5021, L, c, 6181, 4637, i, 2985, S, 3107

[Q]: 3, ['3911', 'D', '1603', 'b', '9167', '5761', 'o', '7115', '633', 'a', '1953', '1125', 'T', 'V', '8119', '3633', '4131', 'Y', '3941', 'j', 'e', 'p', '2985', 'i', '4041', 'e', '1067']
[A]:
3911, D, 1603, b, 9167, 5761, o, 7115, 633, a, 1953, 1125, T, V, 8119, 3633, 4131, Y, 3941, j, e, p, 2985, i