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.

5, ['Y', '5715', 'g', 'J', '549', '9939', '8389', 'J', 'w', 'Q', '6491', 'T', '5097', '8161', '5', 'v', '3909', '8861', '7595', 'i', 'l', '6267', 'H', '4379', 'c', '3447']
Y, 5715, g, J, 549, 9939, 8389, J, w, Q, 6491, T, 5097, 8161, 5, v, 3909, 8861, 7595, i, l

1, ['4937', '4149', 'h', '3383', 'm', 'b', '575', '5173', '813', '2319', '6741', 'c', 'j', 's', '91', '6989']
4937, 4149, h, 3383, m, b, 575, 5173, 813, 2319, 6741, c, j, s, 91

13, ['7425', 'V', 'M', '4091', 'h', 'i', '4849', '2207', 'N', 'K', '8423', '6643', 'e', 'P', '9053', '8171', '3533', 'u', 'o', 'L', '7987', '1251', '2651', 'A', 'm', '7367', 'a', 'M', 'Y']

7425, V, M, 4091, h, i, 4849, 2207, N, K, 8423, 6643, e, P, 9053, 8171