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, ['X', 'i', '4513', '2451', '4079', '8191', '9915', '8299', '6139', '705', 't', '7117', 'M', '2621', '9617', '3259', '1173', 'E', 'T', 'm', '6179', 'W']

A: X, i, 4513, 2451, 4079, 8191, 9915, 8299, 6139, 705, t, 7117, M, 2621, 9617, 3259, 1173
****
Q: 5, ['D', '7693', '4159', '7783', '6083', '4435', '1319', '7397', 'R', '4939', 'T', 'f', '5437', '4013', 'k', '8017', '8495', '9241', 'b']

A: D, 7693, 4159, 7783, 6083, 4435, 1319, 7397, R, 4939, T, f, 5437, 4013
****
Q: 12, ['C', '7317', '915', '9217', '6651', 'V', 'P', '6699', '7559', 'c', 'h', 'S', '2965', '367', 'M', 'w', 'F', '1369', 'g', '271', '8247', '5415', 'g', '1539', 'q']

A:
C, 7317, 915, 9217, 6651, V, P, 6699, 7559, c, h, S, 2965
****