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: 7, ['S', 'N', 'd', 'b', '2207', 's', '4723', 'q', '5379', 'l', 'd', '9345', 'P', 'N', '7101', 'F', 'b', 'c', 'p', 'V', '2987']

A: S, N, d, b, 2207, s, 4723, q, 5379, l, d, 9345, P, N
****
Q: 5, ['9711', '8403', '2867', '3617', '7597', '2907', '7559', '4999', '7697', '1839']

A: 9711, 8403, 2867, 3617, 7597
****
Q: 5, ['9641', 'D', '3233', 'J', '3619', '1323', 'e', '1811', '1927', 'c', 'l', '8153', 'q']

A:
9641, D, 3233, J, 3619, 1323, e, 1811
****