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, ['5113', 'k', 'J', 'f', 'E', 'v', 'd', 'g', 'c', '6189', 'x', '2265', '4145', '1355', '5197', 'K', '1497', 'O', '7823']

A: 5113, k, J, f, E, v, d, g, c, 6189, x
****
Q: 6, ['6273', '5485', '2783', '577', 'n', 'P', 'z', '6023', 'b', '2017', 'w', 'C', '1521', 't']

A: 6273, 5485, 2783, 577, n, P, z, 6023
****
Q: 11, ['2111', 'b', 'A', 'z', '4045', 'z', '1521', 'K', 'h', '8331', 'q', 'a', '3357', 'o', '4751', '4473', 'k', '1225', '2997', 'Q', '9703', 'a', '5289', '5183', 'W', '6443', '979', 'u']

A:
2111, b, A, z, 4045, z, 1521, K, h, 8331, q, a, 3357, o, 4751, 4473, k
****