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, ['X', 'O', 'D', '7293', 'r', 'C', '9075', 's', 'X', '3037', 'k', '9989', '9417', '7901', 'D', 'M', 'r', 'F', 'L', '1601', '8645', 'T']
[A]: X, O, D, 7293, r, C, 9075, s, X, 3037, k, 9989, 9417, 7901, D, M, r, F, L, 1601


[Q]: 8, ['G', '5365', 'g', 'D', '979', '2379', 'H', 'N', '4891', 'F', '9849', 'L', 'w', 'I', '1991', '6423', 'g', '4621', 'Z', 'a', '7349', 'z', '8711', '9559']
[A]: G, 5365, g, D, 979, 2379, H, N, 4891, F, 9849, L, w, I, 1991, 6423


[Q]: 8, ['w', '4327', 'p', '4583', 'R', 'c', '2339', '8847', 'l', 'U', '3055', 'M', '2931', '7671', '3509', 'u', '9099', 's', 'L', 'D', '6717', 'q', 'C', 'p', '4915', '1969', '6319', '6689', '5563', '1417']
[A]:
w, 4327, p, 4583, R, c, 2339, 8847, l, U, 3055, M, 2931, 7671, 3509, u, 9099, s, L, D, 6717, q