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, ['z', 'C', '1787', 'P', 'i', 'M', 'V', '7833', 'i', '189', '6017', 'I']

SOLUTION: z, C, 1787, P, i, M, V, 7833, i, 189

PROBLEM: 4, ['S', '9397', '3571', '6173', '5707', '3343', 'L', '1371', '1485', '605']

SOLUTION: S, 9397, 3571, 6173, 5707, 3343

PROBLEM: 6, ['T', 'A', 'k', 'V', 'D', 'L', '4081', '2681', 'M', 'A', '9209', 'u', '5629', 'b', '2777', 'o', 'r', 'V', '7217', '5997', 'z', 'q', '6713', '5375', '5941', '3431', 'q', '2329', 'T', '8489']

SOLUTION:
T, A, k, V, D, L, 4081, 2681, M, A, 9209, u, 5629, b, 2777, o, r, V, 7217, 5997, z, q, 6713, 5375