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]: 2, ['K', 'x', 'B', 'L', 'a', 'P', 'w', 'R', '1495', '737', 'v', '4079', '6945', '4801', 'c']
[A]: K, x, B, L, a, P, w, R, 1495, 737, v, 4079, 6945


[Q]: 2, ['g', 'U', 'd', 'I', 'b', 'b', 'e', 'N', 'O', '5349', 'd', 'c', '7211', 'n', '9591', 'W', 'D', '4453']
[A]: g, U, d, I, b, b, e, N, O, 5349, d, c, 7211, n, 9591, W


[Q]: 9, ['2589', 'N', '29', 'e', 'l', '7625', '4071', 'j', '1235', '3029', 'Y', '4667', 'Q', '8461', 'J', 'V', '2265', '9229', 'q', 'l', '6847', '5399', '1577', 'x']
[A]:
2589, N, 29, e, l, 7625, 4071, j, 1235, 3029, Y, 4667, Q, 8461, J