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.

[EX Q]: 6, ['2331', '8945', 'l', 'k', '3451', '9015', 'B', 'H', '2081', '5083', '125', '9517', 'e', '2255', '5253']
[EX A]: 2331, 8945, l, k, 3451, 9015, B, H, 2081

[EX Q]: 11, ['1243', 'V', 'G', '9199', '6703', '6297', '4883', 'Y', '783', '6025', '9495', 'q', 'U', 'Q', '6707', 't', '4141', '4765', '3001', '1501', 'X', '9493', 'H', 'R', 'Q', '437']
[EX A]: 1243, V, G, 9199, 6703, 6297, 4883, Y, 783, 6025, 9495, q, U, Q, 6707

[EX Q]: 4, ['r', 'W', '7', 'V', '313', 'P', '2059', '2355', 'P', 'l', '3197', 'j', 'f', '8927', 'P', '2383', '2217', '6955']
[EX A]:
r, W, 7, V, 313, P, 2059, 2355, P, l, 3197, j, f, 8927