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: 3, ['9165', 'N', 'f', '5277', 'J', 'g', '833', '3227']

A: 9165, N, f, 5277, J
****
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: 2, ['1893', 'B', '4525', '111', 'i', 'X', 'S', 'L', '8531']

A:
1893, B, 4525, 111, i, X, S
****