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: 1, ['2847', 'w', 'E', '4291', '9755', '491', '2807', '3995', '5677', '7395', '9175', 't', '9529']

SOLUTION: 2847, w, E, 4291, 9755, 491, 2807, 3995, 5677, 7395, 9175, t

PROBLEM: 4, ['9827', '4159', '8267', 'B', '609', '2119', '7671', '6383', '6683', 'f', '8495', '9171', '5869', '2415', 'H', '7187', 'j', 'I', 'Y', 's', 'v', 'l', 'D']

SOLUTION: 9827, 4159, 8267, B, 609, 2119, 7671, 6383, 6683, f, 8495, 9171, 5869, 2415, H, 7187, j, I, Y

PROBLEM: 5, ['W', '9607', '3177', 'y', '2997', 'S', 'K', '8851', 's', '7025', '6975', '1981', 'i']

SOLUTION:
W, 9607, 3177, y, 2997, S, K, 8851