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]: 7, ['D', 'K', '9949', 'T', '8527', 'c', 'P', 'm', 'R', '2179', '8543', '5025', 'F', '2843', '9401', 'd', '8081', '567']
[A]: D, K, 9949, T, 8527, c, P, m, R, 2179, 8543


[Q]: 1, ['h', '2699', 'H', 'D', 'p', 'F', '5729', 'e', '6819', 'b', 'b', 'i', '4609', 'y', 'o', 'A', '6489', 'j']
[A]: h, 2699, H, D, p, F, 5729, e, 6819, b, b, i, 4609, y, o, A, 6489


[Q]: 2, ['8999', 'c', '7287', '5195', 'h', 'B', '709', 'X', 'V']
[A]:
8999, c, 7287, 5195, h, B, 709