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]: 11, ['e', '8171', 'J', '5119', '8649', 'Y', '8227', 'e', 'd', 'e', '7543', 'Q', '1181', 'E', 'z', '4183', 'q', '6261', '6159', 'l', '6315', '3225', '1479', 'i', '2827', '2231', 'l']
[EX A]: e, 8171, J, 5119, 8649, Y, 8227, e, d, e, 7543, Q, 1181, E, z, 4183

[EX Q]: 2, ['H', 'F', 'J', 'X', 'S', 'r', '4103', 'N', '73', 'A', 'i']
[EX A]: H, F, J, X, S, r, 4103, N, 73

[EX Q]: 7, ['6501', '8779', '4187', '7941', '2283', '9077', '1257', 'O', '6227', 'l', 'b', 'a', '4217', 'g', '6251', '4597', '4581', '6061', '75', '5437', '6107', 'q', 'a', '5495']
[EX A]:
6501, 8779, 4187, 7941, 2283, 9077, 1257, O, 6227, l, b, a, 4217, g, 6251, 4597, 4581