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: 3, ['P', 'u', 'X', 'j', '7477', '3877']

SOLUTION: P, u, X

PROBLEM: 3, ['9317', 'r', 'h', '8465', '8803', '9133', 'L', 'R', 'A', 'i', 'u', '8513', '9071', '3583']

SOLUTION: 9317, r, h, 8465, 8803, 9133, L, R, A, i, u

PROBLEM: 7, ['6363', 'q', 'R', 'B', 'q', '6201', '261', '6685', '6001', 'h', 'X', '8321', 't', 'f', 'g', '6535', 'v', 'f', 'q', 'N', '1379', 'e', '4453', 'T', 'M', '8383', '741', '683', 'l']

SOLUTION:
6363, q, R, B, q, 6201, 261, 6685, 6001, h, X, 8321, t, f, g, 6535, v, f, q, N, 1379, e