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, ['9861', 'h', '87', 'z', '805', 'M', '513', '9101', '1595']

A: 9861, h, 87, z, 805, M
****
Q: 4, ['2877', '4495', 'H', 'g', '1741', '6623', 't', '5345', 'l', 'J', '3691', 'A', '467', '6027', '789', '7345', 'l', 'r', '1637', 'w', 'x', '7823', 'U']

A: 2877, 4495, H, g, 1741, 6623, t, 5345, l, J, 3691, A, 467, 6027, 789, 7345, l, r, 1637
****
Q: 10, ['x', '9961', '9645', '7139', 'e', 'j', '1361', 'O', '2789', 'T', 'D', '3943', 't', '1645', 'l', '9453', 'n', '9963', '7057', 'j', 'E', 'r', '6995', '9305', '5175', '1225', 'r', '4279', '2541', '3223']

A:
x, 9961, 9645, 7139, e, j, 1361, O, 2789, T, D, 3943, t, 1645, l, 9453, n, 9963, 7057, j
****