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: 5, ['A', 'w', '9367', 'j', 'J', '457', 'z', 'C', 'V', 'S', 'P', '8791', '8675', '2373', 'w', 'B', 'p', 'y', '1057', '4815', '5749', 'v', '1123', 'f', 'p']

A: A, w, 9367, j, J, 457, z, C, V, S, P, 8791, 8675, 2373, w, B, p, y, 1057, 4815
****
Q: 4, ['m', 'O', 'w', 'g', '6477', 'w', '3709', 'k', 'B', '3485', 't', 'I', 'a', 'Z']

A: m, O, w, g, 6477, w, 3709, k, B, 3485
****
Q: 2, ['9237', 'x', '2921', 'Q', 'Y', 'A', 'I', '7113', 'a', '1799', 'n', '8247']

A:
9237, x, 2921, Q, Y, A, I, 7113, a, 1799
****