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]: 2, ['231', 'U', '9227', '5663', 'a', 'F', 'Y', 'n', 'i', 'N', 'D', 'u', 'I', 'g', '1759', '6709', '9711', 'z', 'M', '6325', '4901', '3913', '1679', 'z', 'h', '7103', 'R', '9963', 'D', '5259']
[EX A]: 231, U, 9227, 5663, a, F, Y, n, i, N, D, u, I, g, 1759, 6709, 9711, z, M, 6325, 4901, 3913, 1679, z, h, 7103, R, 9963

[EX Q]: 7, ['t', 'K', 'i', '2959', 't', '6067', 'R', 'B', 'i', 'S', 'k', '3319', 'c', '4817', 'U', 'Z', '1965', '7611', 'r', 'C']
[EX A]: t, K, i, 2959, t, 6067, R, B, i, S, k, 3319, c

[EX Q]: 8, ['6351', 'P', '2463', '3797', '2799', '3341', 'a', '8719', '1187', '1107', 'w', '3213', 'k', 'Q', '7919', 'r', 'S', 'Y', '2915', 'h', '3057', '4653', '6307', '101', '5223', 'g']
[EX A]:
6351, P, 2463, 3797, 2799, 3341, a, 8719, 1187, 1107, w, 3213, k, Q, 7919, r, S, Y