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]: 5, ['1955', 'I', '5255', '3981', '9087', '5705', 'l', 'n', 'd', '2359', '9199']
[A]: 1955, I, 5255, 3981, 9087, 5705


[Q]: 4, ['971', '3213', 'E', 'o', 'x', 'h', '5493', '4229']
[A]: 971, 3213, E, o


[Q]: 10, ['Y', 'I', 'D', 's', '1271', 'g', '3141', 'p', '2325', '3019', '8161', '2581', 'R', '547', 'k', 'B', 's', 'F', 'g', '5239', 'x', 'E', 'g', 'B', 'o']
[A]:
Y, I, D, s, 1271, g, 3141, p, 2325, 3019, 8161, 2581, R, 547, k