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: 1, ['l', 'N', '9803', 'o']

A: l, N, 9803
****
Q: 5, ['j', 'e', '6673', 'O', '8997', 'e', 'G', 'J', 'm', 'A', 'c', '6761', '1443', '6789', 'i', 'q', 'u', 'X', '1785']

A: j, e, 6673, O, 8997, e, G, J, m, A, c, 6761, 1443, 6789
****
Q: 13, ['Q', 'm', '8569', '7567', '8295', 'Q', 's', '1185', '8349', '3179', 'W', 'W', 'W', '6777', '4373', 'p', '9343', 'k', '721', 'w', 'b', '5321', '9733', 'i', '5153', 'Q', '677']

A:
Q, m, 8569, 7567, 8295, Q, s, 1185, 8349, 3179, W, W, W, 6777
****