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, ['z', '6977', '5793', '8711', 'm', '7889', 'y']
z, 6977, 5793, 8711

1, ['4549', '1739', '2901', 'X', 'y', 'R', 'w', 'b']
4549, 1739, 2901, X, y, R, w

8, ['2477', '6621', 'G', 'J', 'h', '1437', 'a', 'm', 'n', 'Z', 'K', 'b', 'L', 'U', '7791', '9665', '3069', '5765', 'J', 'a', '4391', '9199', '5871', '8989', '1299', 't']

2477, 6621, G, J, h, 1437, a, m, n, Z, K, b, L, U, 7791, 9665, 3069, 5765