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]: 7, ['8783', '5381', '2769', '6961', '5223', 's', 'U', 'i', 'd', 'F', '8159', 't', 'H', 'e', 't', '3747', '8047', '8479', '4807', 'T']
[A]: 8783, 5381, 2769, 6961, 5223, s, U, i, d, F, 8159, t, H


[Q]: 9, ['X', '2625', 'l', '533', 'j', '265', 'O', 'h', '9031', '9507', '1981', '4301', 'h', 'Z', '3735', 'a', '9359', 's']
[A]: X, 2625, l, 533, j, 265, O, h, 9031


[Q]: 3, ['X', 'l', '929', '8171', '7835', '3537', 'T', 'Q', 'n', 'r', 'C', 'r', 'F', '1821', 'o', 'Y', 'C', 'B', '3459', 'u', '4779', '577', 'g']
[A]:
X, l, 929, 8171, 7835, 3537, T, Q, n, r, C, r, F, 1821, o, Y, C, B, 3459, u