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]: 8, ['5113', 'k', 'J', 'f', 'E', 'v', 'd', 'g', 'c', '6189', 'x', '2265', '4145', '1355', '5197', 'K', '1497', 'O', '7823']
[EX A]: 5113, k, J, f, E, v, d, g, c, 6189, x

[EX Q]: 1, ['N', 'u', 'k', '2923', 'P', 'o']
[EX A]: N, u, k, 2923, P

[EX Q]: 2, ['7017', 'R', 'r', 'R', '4681', '633', '5889', 'H', '681', 't', '1141', 'g', 'Q', '7447']
[EX A]:
7017, R, r, R, 4681, 633, 5889, H, 681, t, 1141, g