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: 6, ['G', '8863', 'q', 'D', 'W', '5373', 'e', 'Z', '7821', '1441', 'h', '2001', 'N', 'v', '3485']

A: G, 8863, q, D, W, 5373, e, Z, 7821
****
Q: 1, ['a', 'k', 'B', '7647', '5407', 'f', '9239', '4391', '4439', 'y']

A: a, k, B, 7647, 5407, f, 9239, 4391, 4439
****
Q: 2, ['4913', '2769', '6673', '3437', 'b', '6647', 't', 'E', 'Q', '5037', 'M', 'f', 'b', '6887', 'w', 'D', 's', 'g', 'N', 'e', 'e', 'h', 'I', 'r', 'r', 's', 'G']

A:
4913, 2769, 6673, 3437, b, 6647, t, E, Q, 5037, M, f, b, 6887, w, D, s, g, N, e, e, h, I, r, r
****