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: 10, ['B', '9661', 'L', 'A', '8735', '5487', 'n', 'd', 'h', '6199', '5419', 't', '7899', '2907', '725', '4153', '6577', 'Q', '5947', 'B']

A: B, 9661, L, A, 8735, 5487, n, d, h, 6199
****
Q: 9, ['X', '2625', 'l', '533', 'j', '265', 'O', 'h', '9031', '9507', '1981', '4301', 'h', 'Z', '3735', 'a', '9359', 's']

A: X, 2625, l, 533, j, 265, O, h, 9031
****
Q: 7, ['2677', '6885', 'C', '8799', '1119', 'i', 'K', 'o', 'b', '5993', '783', '6295', '4545', 'G', '1959', '3057', 'j', 'f', '6349', '7725', '8771', 'Z', '7169', '8411', 'h', 'C', '8055']

A:
2677, 6885, C, 8799, 1119, i, K, o, b, 5993, 783, 6295, 4545, G, 1959, 3057, j, f, 6349, 7725
****