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]: 1, ['8593', 'X']
[EX A]: 8593

[EX Q]: 1, ['B', 'X', 'c', 'J']
[EX A]: B, X, c

[EX Q]: 1, ['l', '1869', '2385', 'd', '3543', '2623']
[EX A]:
l, 1869, 2385, d, 3543