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.

10, ['B', '9661', 'L', 'A', '8735', '5487', 'n', 'd', 'h', '6199', '5419', 't', '7899', '2907', '725', '4153', '6577', 'Q', '5947', 'B']
B, 9661, L, A, 8735, 5487, n, d, h, 6199

7, ['7721', 'W', 'o', 'R', '2933', 'N', '9829', '707', 'A', 'a', '8035', 'i', 'B', 'j', '319', 'v', '5879']
7721, W, o, R, 2933, N, 9829, 707, A, a

4, ['n', '3201', 'q', 'C', 'I', '5377', '9267', 'D', '5', '319', 'o', 'E']

n, 3201, q, C, I, 5377, 9267, D