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.

6, ['2331', '8945', 'l', 'k', '3451', '9015', 'B', 'H', '2081', '5083', '125', '9517', 'e', '2255', '5253']
2331, 8945, l, k, 3451, 9015, B, H, 2081

1, ['6107', '9057', '3107', 'Y', '9471']
6107, 9057, 3107, Y

1, ['4181', 'U', 'b', 'd', '9403', 'F', '9275', 'O', 'r', 'y', 'O', '8907', 'i', '2857', 'e', '4947', 'T', '1981', 'R', '3565', 'I', '2421', 'e', '4261', 'r']

4181, U, b, d, 9403, F, 9275, O, r, y, O, 8907, i, 2857, e, 4947, T, 1981, R, 3565, I, 2421, e, 4261