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]: 2, ['b', '4015', 'y', '4537', 'f']
[A]: b, 4015, y


[Q]: 1, ['x', '7625', 't', 'P']
[A]: x, 7625, t


[Q]: 3, ['d', '5967', 'p', '2671', 'B', '411']
[A]:
d, 5967, p