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, ['O', 'w', 'F', '6965', 'J', 'l', '205', 'N', '3153', 'b', '2955', '3409', 'X', 'E', 'n', 'm', '2955', 'V', '769']

A: O, w, F, 6965, J, l, 205, N, 3153, b, 2955, 3409, X, E, n, m, 2955, V
****
Q: 12, ['129', 'j', 'x', 'x', 'A', '2755', 'z', '4145', '4607', '219', '5957', '7017', '8945', 'P', 'P', '7815', 'G', '883', 'B', 'H', '4113', 'S', 'p', '6757', 'v']

A: 129, j, x, x, A, 2755, z, 4145, 4607, 219, 5957, 7017, 8945
****
Q: 8, ['6985', '3609', '8673', '2661', 'n', '3147', 'V', '2241', '5741', 'Y', 'B', '3113', 'N', '4861', '8575', '7835', 'L', 'S', '4481', '1357', '1951', 'j', 'C', '2413', 'q', 'E', '1095', '1995', 'S']

A:
6985, 3609, 8673, 2661, n, 3147, V, 2241, 5741, Y, B, 3113, N, 4861, 8575, 7835, L, S, 4481, 1357, 1951
****