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.

[Q]: 1, ['6109', 'd']
[A]: 6109


[Q]: 1, ['T', '3241', 'k', 'r', 'x', '6509', 'Z']
[A]: T, 3241, k, r, x, 6509


[Q]: 2, ['E', '683', 'M', 'l']
[A]:
E, 683