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, ['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, ['5805', '6691', 'n', 'Z', 'U', '5017', '499', '7849', 'L', 'l']
5805, 6691, n, Z, U, 5017

2, ['M', '9187', 'n', 'H', '6589', '6805', '4069', '9335', 'Y', 'H', 'G', '8395', '2265', 't', '207', '9841', '5859', '5423', 'y', 'g', '3975', 'H', 'y', 'O', '5851', 'x', '5515', 'R']

M, 9187, n, H, 6589, 6805, 4069, 9335, Y, H, G, 8395, 2265, t, 207, 9841, 5859, 5423, y, g, 3975, H, y, O, 5851, x