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: 2, ['977', 'Z', 'R', '8793', '2449', '2051', 'o', 'm']

SOLUTION: 977, Z, R, 8793, 2449, 2051

PROBLEM: 1, ['N', '3005', '6935', 'A', 'p']

SOLUTION:
N, 3005, 6935, A