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: 2, ['f', 'X', 'M', '4005', '1665', '1379', '2731', 'p', '3683', 'C', '9699', 'H', '4481', 'M', 'e', 'N', 'C']

A: f, X, M, 4005, 1665, 1379, 2731, p, 3683, C, 9699, H, 4481, M, e
****
Q: 2, ['977', 'Z', 'R', '8793', '2449', '2051', 'o', 'm']

A: 977, Z, R, 8793, 2449, 2051
****
Q: 2, ['J', 'F', 'z', 'F']

A:
J, F
****