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, ['M', '5663', '4129', 'B', '7459', 's', '6615', 's']

A: M, 5663, 4129, B, 7459
****
Q: 1, ['2847', 'w', 'E', '4291', '9755', '491', '2807', '3995', '5677', '7395', '9175', 't', '9529']

A: 2847, w, E, 4291, 9755, 491, 2807, 3995, 5677, 7395, 9175, t
****
Q: 6, ['p', 'N', 'e', 'A', '1989', 'M', '8807', '7881', 'o', '2549', 'C', 'c', '4373', 'j', '5703']

A:
p, N, e, A, 1989, M, 8807, 7881, o
****