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]: 13, ['h', 'm', 'l', '9319', '2491', 'K', 'A', '8771', 'R', '9885', 'X', '2361', '1615', '9081', '8833', '367', 'e', '1515', 'b', '1581', 'E', 'S', '5521', '7891', '6061', 'n']
[A]: h, m, l, 9319, 2491, K, A, 8771, R, 9885, X, 2361, 1615


[Q]: 5, ['s', 'i', '3295', 'n', '1193', 'c', 'Z', 'x', '6739', 's', '8097', '3231', 'D', 'Q', '5999', 'E']
[A]: s, i, 3295, n, 1193, c, Z, x, 6739, s, 8097


[Q]: 4, ['5721', 'Y', '4249', '761', '4147', 'N', 'o', '8185', '5871', 'u', '7463', 'f', '4443', 'K', '3077', 'S', '5099', 'v', '1827', 'g', 'E', 'F', '5643', 'c', '5473']
[A]:
5721, Y, 4249, 761, 4147, N, o, 8185, 5871, u, 7463, f, 4443, K, 3077, S, 5099, v, 1827, g, E