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, ['H', 'F', 'J', 'X', 'S', 'r', '4103', 'N', '73', 'A', 'i']

SOLUTION: H, F, J, X, S, r, 4103, N, 73

PROBLEM: 1, ['m', 'M', '7431', '8295']

SOLUTION: m, M, 7431

PROBLEM: 10, ['U', 'I', 'X', '9567', '9513', '8257', '7201', 'a', '7587', '2261', 'N', 'n', 'U', 's', '4213', 'D', 'R', 'N', '6809', 'e', '1143', '1351', '3705', '4583', 'b', '2871', 's', 'g', 'b', '1297']

SOLUTION:
U, I, X, 9567, 9513, 8257, 7201, a, 7587, 2261, N, n, U, s, 4213, D, R, N, 6809, e