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]: 4, ['2877', '4495', 'H', 'g', '1741', '6623', 't', '5345', 'l', 'J', '3691', 'A', '467', '6027', '789', '7345', 'l', 'r', '1637', 'w', 'x', '7823', 'U']
[EX A]: 2877, 4495, H, g, 1741, 6623, t, 5345, l, J, 3691, A, 467, 6027, 789, 7345, l, r, 1637

[EX Q]: 5, ['1667', 'U', '1659', 'E', 'J', '7209', 'B', '9839', 'z', '8841', '5105', 'N', '1487', 'q', '3137', 'b', 'D', '1433', '2365', 'Q', '75', 't', '9887', 'y']
[EX A]: 1667, U, 1659, E, J, 7209, B, 9839, z, 8841, 5105, N, 1487, q, 3137, b, D, 1433, 2365

[EX Q]: 9, ['Q', 'L', 'K', 'N', 'f', 'z', '1487', '3055', 'T', 'E', '2803', 'F', '9359', 'O', 'b', '7367', 'F', '5697']
[EX A]:
Q, L, K, N, f, z, 1487, 3055, T