TASK DEFINITION: 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.
PROBLEM: 2, ['2655', '829', '9303', '6983', '6311', '9929', 'J']

SOLUTION: 2655, 829, 9303, 6983, 6311

PROBLEM: 5, ['h', '5371', 'Y', 'E', '4733', '9039', 'w', 'p', '1229', '4813', '2273', 'q', '1831']

SOLUTION: h, 5371, Y, E, 4733, 9039, w, p

PROBLEM: 3, ['6067', '5057', '6379', '2443', 'u', 'l', '4105', '2047', '297', '6937', '2341', 'u', 'U', '4311', '9447', 'y', 'k', 'M', 'L', 'm', '4919', 'N', 'V']

SOLUTION:
6067, 5057, 6379, 2443, u, l, 4105, 2047, 297, 6937, 2341, u, U, 4311, 9447, y, k, M, L, m