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: 8, ['4647', '6043', 'f', '6015', '289', 'f', 'E', '1355', 'e', 'y', 'i', '1279', '9563', 'c', 'U', 'd', '4333', '2351', 'Y', 'E', 'o', '4973', '475', '7943', '3199']

A: 4647, 6043, f, 6015, 289, f, E, 1355, e, y, i, 1279, 9563, c, U, d, 4333
****
Q: 6, ['5633', '7953', '9691', '1375', 'q', '8937', '9523', '7009', 'J', 'b', '5747', '9969', 'v', '6527', 'M', 'm', 'P', 'K', 'Y']

A: 5633, 7953, 9691, 1375, q, 8937, 9523, 7009, J, b, 5747, 9969, v
****
Q: 2, ['B', 'K', 'H', 'G', '1651', 'W', 'O', 'Q', 'p', '9027', '4279', '3013', 'r', 'c', '6645', 'o', '5979', '9499', 'p', 'J', 'n']

A:
B, K, H, G, 1651, W, O, Q, p, 9027, 4279, 3013, r, c, 6645, o, 5979, 9499, p
****