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: 11, ['T', '3167', 'D', 'j', '7651', '5893', 'J', '2481', '371', '4257', 'h', '1251', '2973', '2031', '4373', '1271', '6829', 'O', '365', '8495', 'N', '7067', 'n', '4805', 'A', '547', '521', 'g', '2299']

SOLUTION: T, 3167, D, j, 7651, 5893, J, 2481, 371, 4257, h, 1251, 2973, 2031, 4373, 1271, 6829, O

PROBLEM: 1, ['5811', 'n', '6307', 'f', 'Z', '5779', 'S', 'T', 'D', '261']

SOLUTION: 5811, n, 6307, f, Z, 5779, S, T, D

PROBLEM: 14, ['1951', '6857', '2627', '2249', 'D', 'p', '8553', '2407', 'x', 'e', '6869', '3155', '4807', '9085', 'g', '343', 'p', '3099', 'd', 'Y', '4661', 'p', 'd', 't', '893', '4005', '5997', 'E', '6333', '569']

SOLUTION:
1951, 6857, 2627, 2249, D, p, 8553, 2407, x, e, 6869, 3155, 4807, 9085, g, 343