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.

Q: 2, ['9977', '1897', '9039', 'W', '3709']

A: 9977, 1897, 9039
****
Q: 2, ['j', '7967', 'M', 'n']

A: j, 7967
****
Q: 7, ['4199', 'D', 'z', 'Y', '5549', 'H', '6541', '7015', '6357', 'q', '6313', '8599', 'i', 'n', '7881', '5785', 'v', '1565', 'B', 'I', 'E', 'X', 'T', 'T', 'e', '6321', '5945']

A:
4199, D, z, Y, 5549, H, 6541, 7015, 6357, q, 6313, 8599, i, n, 7881, 5785, v, 1565, B, I
****