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]: 5, ['7043', '7447', 'r', 'u', '2817', '2279', 'O', '3115', '4655', '3245', '3785']
[A]: 7043, 7447, r, u, 2817, 2279


[Q]: 4, ['655', '9271', 'U', 'q', '8169', 'O', '4631', 'E', '2995', 'I', '733', 'H', 'X', '9071', '9103', '6413', 'Z', 'u', 'C', '5169']
[A]:
655, 9271, U, q, 8169, O, 4631, E, 2995, I, 733, H, X, 9071, 9103, 6413