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: 4, ['A', '865', 'W', 'T', 'L', 'X', '9859', 'q', '8911', '717', 'Q', 'F', 'e', '2691', '3913', '5015', 's', 'Q', 'g', 'B', '4665', '8957']

A: A, 865, W, T, L, X, 9859, q, 8911, 717, Q, F, e, 2691, 3913, 5015, s, Q
****
Q: 2, ['R', 'S', '6131', '6103', '2787', 'p', '6131', '7353', 'e', '6111', 'B', '5377', '4403', '687', 'C', 'v', 'B', '2295', '2745', '3865', 'w', 'u', 'v', '6635']

A: R, S, 6131, 6103, 2787, p, 6131, 7353, e, 6111, B, 5377, 4403, 687, C, v, B, 2295, 2745, 3865, w, u
****
Q: 6, ['C', '2687', '7963', '8615', 'f', '4423', '2015', '5225', 'v', '5581', '2803', '5333', 'A', 'O', 'w', 'd', '4819', 'p', 'B', 'U', '6807', '4687', '4447', 'J', 'M', 'U', '9881', 'e', 's']

A:
C, 2687, 7963, 8615, f, 4423, 2015, 5225, v, 5581, 2803, 5333, A, O, w, d, 4819, p, B, U, 6807, 4687, 4447
****