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, ['7909', '2675', 'Y', '8083', '379', 'K', '9823', '7959', 'w', '7649', 'C', 'S']

A: 7909, 2675, Y, 8083, 379, K, 9823, 7959, w, 7649
****
Q: 4, ['4773', 'K', '4689', 'L', 'b', 'Y', '911', '5037', 'i', 'x', 'i', '1881', '9697', '4575', 'e', '7425', 'k', 'X', '1287', '5939', '4907', '9289', 'm', '269', 'w', '641', '8981']

A: 4773, K, 4689, L, b, Y, 911, 5037, i, x, i, 1881, 9697, 4575, e, 7425, k, X, 1287, 5939, 4907, 9289, m
****
Q: 3, ['9355', '6747', 'B', '8693', '3961', '7223', '1711', '11', 'w', '2353', 'd', '8959', 'd', 'k', '199', '891', '4047', '7473', 'q', 'b', '9055', '6589', '2089', '6721', 'A', 'E', '3643', '6451', 'K', '2245']

A:
9355, 6747, B, 8693, 3961, 7223, 1711, 11, w, 2353, d, 8959, d, k, 199, 891, 4047, 7473, q, b, 9055, 6589, 2089, 6721, A, E, 3643
****