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]: 9, ['X', '2625', 'l', '533', 'j', '265', 'O', 'h', '9031', '9507', '1981', '4301', 'h', 'Z', '3735', 'a', '9359', 's']
[EX A]: X, 2625, l, 533, j, 265, O, h, 9031

[EX Q]: 8, ['o', 'i', 'D', '8205', '7451', 'J', 'f', '5177', 'a', 'O', '4499', '8375', '8559', '2119', 'S', '2435', 'w', 'L', 'h', '2053', 's', 'j']
[EX A]: o, i, D, 8205, 7451, J, f, 5177, a, O, 4499, 8375, 8559, 2119

[EX Q]: 4, ['8639', '357', 'b', '3095', 'v', '7563', 'm', 'G', '3041', 'L', 'Q', '3645', '4609']
[EX A]:
8639, 357, b, 3095, v, 7563, m, G, 3041