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: 1, ['8241', 'Q', 'm', '1117', 'M', '7055', 'R', 'E', 's', '1745', 'g', 'V', '9185', '8203', 'Y', 'N', 'F', '2225', '1859', '4107', '5543', '37', 'X', '3451', '2265', '9289', '5619', '5851', 'h', '8059']

A: 8241, Q, m, 1117, M, 7055, R, E, s, 1745, g, V, 9185, 8203, Y, N, F, 2225, 1859, 4107, 5543, 37, X, 3451, 2265, 9289, 5619, 5851, h
****
Q: 4, ['781', 'x', 'v', 'G', 'k', '4317', '6855', 'D', 'S', 'z', '8161', '2497', '255', 'N', 'F', 'X', 'W', 'D', '2873', '8385', 'M', '8043', 'z']

A: 781, x, v, G, k, 4317, 6855, D, S, z, 8161, 2497, 255, N, F, X, W, D, 2873
****
Q: 4, ['2825', 'D', '5529', '1267', '9319', 'j', '2347', 'R', 't', 'Q', '6851', '2955', '519', 'U', '3861', 'O', 'Y', 'Q', 'w', '5825', '3503', '9565', '991', 'T', 'B', 'P', 'S', '6485', '6127']

A:
2825, D, 5529, 1267, 9319, j, 2347, R, t, Q, 6851, 2955, 519, U, 3861, O, Y, Q, w, 5825, 3503, 9565, 991, T, B
****