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]: 8, ['3457', '4925', 'K', '4729', '1811', 'V', '7821', '1551', 'x', '2331', '1783', 'Y', '1167', '7639', 'D', 'X', '5403']
[EX A]: 3457, 4925, K, 4729, 1811, V, 7821, 1551, x

[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]: 3, ['J', '8399', '463', 'T', '8715', 'S', '6123', '5829', 'B', '7573']
[EX A]:
J, 8399, 463, T, 8715, S, 6123