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: 5, ['9711', '8403', '2867', '3617', '7597', '2907', '7559', '4999', '7697', '1839']

SOLUTION: 9711, 8403, 2867, 3617, 7597

PROBLEM: 2, ['977', 'Z', 'R', '8793', '2449', '2051', 'o', 'm']

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

PROBLEM: 4, ['7177', '3105', 'B', '9843', '8193', '7429', 'n', 'h', 'F', 'o', 'V', 'd', '3131', 'W', '507', 'z', '2399', 'M', '5043', '7311']

SOLUTION:
7177, 3105, B, 9843, 8193, 7429, n, h, F, o, V, d, 3131, W, 507, z