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: 1, ['8681', 'x', '4107', '7827', 'l', 'K', 'v', '4089', '5563']

SOLUTION: 8681, x, 4107, 7827, l, K, v, 4089

PROBLEM: 8, ['V', '2187', 'H', 'z', '7885', 'M', '7567', '1377', '6479', '5463', '9617', 'i', '6139', '8969', '4885', '5643', 'l', 'V', 'z', 't', 'k', 'H', '5063', '5333', 'i', '555', 'v']

SOLUTION:
V, 2187, H, z, 7885, M, 7567, 1377, 6479, 5463, 9617, i, 6139, 8969, 4885, 5643, l, V, z