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]: 3, ['u', 's', 'k', '5215', '9609', '1617', 'i']
[A]: u, s, k, 5215


[Q]: 3, ['161', 'Z', '5715', '9755', '2855', 'P']
[A]: 161, Z, 5715


[Q]: 11, ['8365', '5249', 'e', '9793', '5785', '2371', '4619', '9835', '6589', 'm', 'k', '8183', 'G', '6895', 'f', '5993', 'U', 't', '2257', '3941', '9339', '1125', '4635', '6553', 'x', '899', '4383', 'L']
[A]:
8365, 5249, e, 9793, 5785, 2371, 4619, 9835, 6589, m, k, 8183, G, 6895, f, 5993, U