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: 1, ['T', '3241', 'k', 'r', 'x', '6509', 'Z']

SOLUTION: T, 3241, k, r, x, 6509

PROBLEM: 1, ['k', '9837', 'A', 'q', '3695', '731', '1449', '3559', '4553', 'J', 'w']

SOLUTION: k, 9837, A, q, 3695, 731, 1449, 3559, 4553, J

PROBLEM: 7, ['9017', 'a', 'b', 'X', '7329', 'u', 'X', 'O', 'l', 'a', '4877', 'v', 'D', 'O', 'g', '1095', '8435', '5733', '9689', 'C', '5635', '5361', 'T', '5615', '1571', 'U', 'm', '3297']

SOLUTION:
9017, a, b, X, 7329, u, X, O, l, a, 4877, v, D, O, g, 1095, 8435, 5733, 9689, C, 5635