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]: 3, ['t', 'x', 't', 'O', 'L', '2937', 'A', '4883', '745', 'H', '1661', 'u', '9837', '7675', '7471', '3781', 'n', '8275']
[A]: t, x, t, O, L, 2937, A, 4883, 745, H, 1661, u, 9837, 7675, 7471


[Q]: 5, ['e', '4581', 'm', '8323', 'q', 'H', '8441', 'Z', 'x', 'P', 'P']
[A]:
e, 4581, m, 8323, q, H