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: 2, ['g', 'j', 'a', 'h']

A: g, j
****
Q: 12, ['Z', '5715', '7677', 'Y', '4345', 'O', '8713', '3895', 'V', '6971', 'd', '2357', 'a', 'y', 'I', 'd', '3755', '6453', '7033', '4447', 'y', '4937', 'K', 'Q', '9061']

A:
Z, 5715, 7677, Y, 4345, O, 8713, 3895, V, 6971, d, 2357, a
****