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, ['2935', 'H', '5139', 'n', 'X', '5999', 'C', '5147', 'J', '293', 'c', 'u', '9859', 'H', 'W', '2171', 'w', '3431', '1515']

A: 2935, H, 5139, n, X, 5999, C, 5147, J, 293, c, u, 9859, H, W, 2171, w, 3431
****
Q: 3, ['8775', '1153', '8869', '8361', '2365', '6205', '4699', '3019', '2465', 'E', 'S', 't']

A: 8775, 1153, 8869, 8361, 2365, 6205, 4699, 3019, 2465
****
Q: 7, ['d', '1911', '351', 'R', '5887', 'h', 'J', '1869', '9147', 't', '6867', 'h', '7175', 'H', 'u', 'S', 'w']

A:
d, 1911, 351, R, 5887, h, J, 1869, 9147, t
****