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, ['3287', '3313', '1501', '5179', 'S', 'n', '8371', 'Z', 'K', 'T', 'v', '7227', '8315', '6731', 'e', 'h', 'g', '4397']

SOLUTION: 3287, 3313, 1501, 5179, S, n, 8371, Z, K, T, v, 7227, 8315, 6731, e

PROBLEM: 7, ['F', 'u', '227', 'L', 'n', 'L', '5451', '6695', '3789', '4127', '2377', 'd', 'e', '7091', 'R', '4871', '6359', 'j', '8397', '8415', 'S', '8009', '2493', 'B', '3237', 'i']

SOLUTION: F, u, 227, L, n, L, 5451, 6695, 3789, 4127, 2377, d, e, 7091, R, 4871, 6359, j, 8397

PROBLEM: 7, ['Y', '7657', '51', '6255', '6607', '7291', 'H', '9549', 'd', '1491', '4467', 'o', 'x', '2547', 'P', '4663', 'b', 'F', '6599', 'f']

SOLUTION:
Y, 7657, 51, 6255, 6607, 7291, H, 9549, d, 1491, 4467, o, x