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, ['k', 'k', 'A', '5571', '3033', '5481']

A: k, k, A, 5571
****
Q: 9, ['M', '5097', 'b', 'W', '4627', 'i', 's', 'H', '3203', 'V', '2689', 'Y', 'G', 'G', 'O', '7913', '4265', '5203', '8085', 'c', '6847', '7825', 'O', 'K', '8371', '8899', '7721', '6695', 'r', 'q']

A: M, 5097, b, W, 4627, i, s, H, 3203, V, 2689, Y, G, G, O, 7913, 4265, 5203, 8085, c, 6847
****
Q: 4, ['5821', 'K', '397', 'i', '5423', 'x', '8565', 'P', 'i', '2245', '4923', '3223', '8545', '1223']

A:
5821, K, 397, i, 5423, x, 8565, P, i, 2245
****