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]: 5, ['l', 'M', '5143', '6301', 'W', 'H', 'D', 'o', '7457', 'o', '5021', 'a', '5621', 'g', 'A', 'Q', 'X', 'X', 'b']
[EX A]: l, M, 5143, 6301, W, H, D, o, 7457, o, 5021, a, 5621, g

[EX Q]: 2, ['1713', 'o', '6397', '4329', 'R', '4123', '5297']
[EX A]: 1713, o, 6397, 4329, R

[EX Q]: 1, ['P', '7661', '7549', '1931', 'I', 'L']
[EX A]:
P, 7661, 7549, 1931, I