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]: 6, ['g', '2043', '6243', '8743', '2557', '8847', '663', 'D', 'M', '6503', 'u', 'W', 's', '3707', '4763', '6937']
[A]: g, 2043, 6243, 8743, 2557, 8847, 663, D, M, 6503


[Q]: 1, ['2935', 'H', '5139', 'n', 'X', '5999', 'C', '5147', 'J', '293', 'c', 'u', '9859', 'H', 'W', '2171', 'w', '3431', '1515']
[A]: 2935, H, 5139, n, X, 5999, C, 5147, J, 293, c, u, 9859, H, W, 2171, w, 3431


[Q]: 10, ['4165', 'U', 'g', 'o', '2143', 'p', 'S', 'Z', 'T', '4009', 'G', 'j', 'q', '7071', 'd', 'x', '1157', '3541', '7171', 'p']
[A]:
4165, U, g, o, 2143, p, S, Z, T, 4009