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]: 5, ['845', 'w', 'b', 'M', '8983', '1591', 'n', 'i', '9817', '1397', '5085', 'p', '503', 'o', '953', '3705', 'D']
[A]: 845, w, b, M, 8983, 1591, n, i, 9817, 1397, 5085, p


[Q]: 1, ['s', '7121']
[A]: s


[Q]: 3, ['8859', 'Q', '9171', '4273', '6079', 'M', 'w', '4385', '711', '933', 'p', 'm', 'l', 'I', 'q', '4567', '4955', '2143', '2985', '6115', '9967', '413', '615', '1195', '3961', '9601', 'Y', 'r', '2329']
[A]:
8859, Q, 9171, 4273, 6079, M, w, 4385, 711, 933, p, m, l, I, q, 4567, 4955, 2143, 2985, 6115, 9967, 413, 615, 1195, 3961, 9601