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, ['t', '51', '4787', '2989', 'o', 'J', '7547', '5727', '5705', 'y', '9805']
[A]: t, 51, 4787, 2989, o, J, 7547, 5727, 5705


[Q]: 4, ['5555', '403', 'a', '7381', 'Q', 'h', '1825', 'e', '9281', '5277', '2639', '8775', '7623']
[A]: 5555, 403, a, 7381, Q, h, 1825, e, 9281


[Q]: 1, ['U', '4997', 'j', '8067', 'Q', '6595', 'V', 'z']
[A]:
U, 4997, j, 8067, Q, 6595, V