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: 4, ['5821', '5977', '5433', 'V', 'r', '8257', '9097', '1943', '8199', 'u', '6249', '559']

A: 5821, 5977, 5433, V, r, 8257, 9097, 1943
****
Q: 2, ['3727', 'R', 'h', '1969', 'v', '5353', 'A', 't', '2237', 'j', 't', 'T']

A: 3727, R, h, 1969, v, 5353, A, t, 2237, j
****
Q: 4, ['I', '7777', 'J', '4001', 'J', 'M', '579', 'G', '1881', 's', 'x', '9261', '9455', 'r', '9213', 'r', 'J', 'O', '9601', '1039', 'u', '7047', 'a', '2223', '7775', '3721', 'e', '3837']

A:
I, 7777, J, 4001, J, M, 579, G, 1881, s, x, 9261, 9455, r, 9213, r, J, O, 9601, 1039, u, 7047, a, 2223
****