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.

9, ['u', '4051', '3701', 'X', '4683', 'l', '7955', 'O', '4095', 'c', 'j', 'A', '6477', '529', '4761', '1117', 'l', 'X', 'h']
u, 4051, 3701, X, 4683, l, 7955, O, 4095, c

5, ['j', 'Q', '6289', 'K', '8341', '2631', '2421', '7539', 'h', '4761', 'K', '7323', 'i', 'X', 'y', '6981', 'P', '7335', 'h', 'H']
j, Q, 6289, K, 8341, 2631, 2421, 7539, h, 4761, K, 7323, i, X, y

4, ['7133', '4261', '1805', '8647', '3675', '8013', '5195', 'm', 'i', 'u', 'L', '4741', 'L', 'e', '4855', 'b', 'y', '1361', '4475', '7829', '307', 'j', '9283', '4359', '4731', '9907', '7101', '3565', 'C', 'v']

7133, 4261, 1805, 8647, 3675, 8013, 5195, m, i, u, L, 4741, L, e, 4855, b, y, 1361, 4475, 7829, 307, j, 9283, 4359, 4731, 9907