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.

3, ['161', 'Z', '5715', '9755', '2855', 'P']
161, Z, 5715

1, ['s', '5597', '6835', 'p', '171', 'C']
s, 5597, 6835, p, 171

6, ['y', 'D', '5399', 'O', 'c', '531', 'h', '3965', '2871', '2825', 's', '4511', '8905', 'Y', '1549', 'Q', '4483', '7063', '3609', '7471', 'p', '8539', '4437', 'H', 'y', 'U']

y, D, 5399, O, c, 531, h, 3965, 2871, 2825, s, 4511, 8905, Y, 1549, Q, 4483, 7063, 3609, 7471