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: 1, ['6107', '9057', '3107', 'Y', '9471']

SOLUTION: 6107, 9057, 3107, Y

PROBLEM: 10, ['K', '3845', 'R', 'l', 'E', '9417', 'O', '573', '6405', 'b', 'G', 't', 'C', 'f', '4771', 'p', 'g', 'Y', '6509', 't', '6917', 'M', '8007', '3041', 'C', '3303', 'l', 'S']

SOLUTION:
K, 3845, R, l, E, 9417, O, 573, 6405, b, G, t, C, f, 4771, p, g, Y