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]: 4, ['c', '8925', 'H', 'r', 'b', 'c', '4701', 'W', 'u', 'O', '2557', '1995', '6013', 'A']
[A]: c, 8925, H, r, b, c, 4701, W, u, O

[Q]: 3, ['p', '7857', 'h', '7041', '7917', '1685', 'o', 'P', '5675', 'W', 'Z', 'L', 'W', 'z', '3111', 'm', 'n', '8823', 'R', '5619', '9219', 'M', 'a', '4991', '7801', '8387', '7483', 'Q', '789']
[A]: p, 7857, h, 7041, 7917, 1685, o, P, 5675, W, Z, L, W, z, 3111, m, n, 8823, R, 5619, 9219, M, a, 4991, 7801, 8387

[Q]: 6, ['C', 'b', 'j', '7525', 'u', 'K', 'z', 'f', '8087', '3699', '8593', 't', 'p', '7215', '1105', 'z', '5759']
[A]:
C, b, j, 7525, u, K, z, f, 8087, 3699, 8593