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.

1, ['n', '2253', '7809', 'U', 'X', '5899', 'R', '6509']
n, 2253, 7809, U, X, 5899, R

1, ['c', '8843', 'R', '7857', '8439', 'c', 'a', 'S', '75', 'S', '6095', 'S', '4857', 'U', 's', 'T', 'b', '8079', '9635']
c, 8843, R, 7857, 8439, c, a, S, 75, S, 6095, S, 4857, U, s, T, b, 8079

4, ['E', 'Q', '2107', '7535', 'Q', '3445', 'N', 'r', '5207', 'r', '6561', '8607', 'N', 'f', '2907', '2261', '5077', '4645', '3997', '4579', '6147', 'u', '9187', '9621', 'n']

E, Q, 2107, 7535, Q, 3445, N, r, 5207, r, 6561, 8607, N, f, 2907, 2261, 5077, 4645, 3997, 4579, 6147