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, ['8817', '3439', '8059', '703', '5885', '3175', 'x', '7971', 'f', '3897', 'e', 'B', '6923', 'Y', 'z', 'D', 'Z']

SOLUTION: 8817, 3439, 8059, 703, 5885, 3175, x, 7971, f, 3897, e, B, 6923, Y, z

PROBLEM: 3, ['x', 'P', 'P', '5915', 'c', '1339']

SOLUTION: x, P, P

PROBLEM: 1, ['w', '8845', '8265', 'n', '8679']

SOLUTION:
w, 8845, 8265, n