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.

3, ['M', '3663', '101', 'p', 'T', 'J', 'N', '7915', '5897', 'm', 'g', '3357', 'j', 'S', '7271', 'B', '4625', '7827', 'w', 'B', '8123', '6623']
M, 3663, 101, p, T, J, N, 7915, 5897, m, g, 3357, j, S, 7271, B, 4625, 7827, w

1, ['7677', '3759', 'w']
7677, 3759

6, ['J', '747', '8749', 'A', '1999', '9285', '5289', '4419', '3213', 'O', '6509', 'D', '7917', 'u', 'L', '4773', 'W', 'o', '581', 'V', 'R', '1501', '2787', '9365', 'Q', '8189']

J, 747, 8749, A, 1999, 9285, 5289, 4419, 3213, O, 6509, D, 7917, u, L, 4773, W, o, 581, V