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, ['n', '1643', 'T', '7613', '8719', 'y', 'n', '6077', '727', 'I', 's', '229', 'h', '6299']
n, 1643, T, 7613, 8719, y, n, 6077, 727

1, ['O', 'w', 'F', '6965', 'J', 'l', '205', 'N', '3153', 'b', '2955', '3409', 'X', 'E', 'n', 'm', '2955', 'V', '769']
O, w, F, 6965, J, l, 205, N, 3153, b, 2955, 3409, X, E, n, m, 2955, V

5, ['h', '2867', '8621', '6267', '2983', '9177', '9411', 'T', '2287', '3733', 'Y', 'J', 'Y', '2553', 'g', 'g', '7817', 'q', '7877', 'S', 'Z', 'd', 'Q', '5841', 'W', 'k', 'f', 'b']

h, 2867, 8621, 6267, 2983, 9177, 9411, T, 2287, 3733, Y, J, Y, 2553, g, g, 7817, q, 7877, S, Z, d, Q