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: 10, ['7713', 't', '9373', 'p', 'w', '7071', 'P', 'o', '5997', '9173', '7179', '265', 'h', '841', 'o', '775', '9721', '341', 'S', 'l', '1895', 'E', '6867', 'E', '2727', '1045', 'R', 'U']

SOLUTION: 7713, t, 9373, p, w, 7071, P, o, 5997, 9173, 7179, 265, h, 841, o, 775, 9721, 341

PROBLEM: 1, ['p', '1469', '7097']

SOLUTION: p, 1469

PROBLEM: 1, ['3561', 'z', 'I', 'P', 'Z', 'p', 'D', '3677', 'e', 'x', 'Y', '1491', '4143', '3803', '3173', '2329', '303', '4961', '1945', '4637', '4319', '8787', '1105', 'V', 's', 'm', '2837', '9811']

SOLUTION:
3561, z, I, P, Z, p, D, 3677, e, x, Y, 1491, 4143, 3803, 3173, 2329, 303, 4961, 1945, 4637, 4319, 8787, 1105, V, s, m, 2837