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]: 7, ['6443', '1261', '945', '2891', 'p', '2667', 'G', 'm', 'n', 'C', '3627', '9613', '9095', 'K', '3081', '4231', 'E', 'l']
[A]: 6443, 1261, 945, 2891, p, 2667, G, m, n, C, 3627


[Q]: 3, ['7269', 'B', 'R', '5389', '2109', '7927', '4151', '4607', 'L', 'o', '8509', 'm', 'Y', 'K', 'Z', '1593', 'q', '6293', 'a']
[A]: 7269, B, R, 5389, 2109, 7927, 4151, 4607, L, o, 8509, m, Y, K, Z, 1593


[Q]: 5, ['h', 'T', '7901', 'm', '3771', 'o', '8107', 'O', '7229', 'x', 'S', 'g', '8069']
[A]:
h, T, 7901, m, 3771, o, 8107, O