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]: 6, ['6273', '5485', '2783', '577', 'n', 'P', 'z', '6023', 'b', '2017', 'w', 'C', '1521', 't']
[A]: 6273, 5485, 2783, 577, n, P, z, 6023


[Q]: 10, ['n', '5707', 'v', '9227', '6921', '3793', '6845', 'n', 'B', 'a', 'c', 'v', '2835', 'v', 'f', '2121', 'M', '8673', 'b', '6715', 'K', '4633', '4107', 'Y', 'z', '9965', '4595', '6495', 'A', 'M']
[A]:
n, 5707, v, 9227, 6921, 3793, 6845, n, B, a, c, v, 2835, v, f, 2121, M, 8673, b, 6715