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: 4, ['m', 'O', 'w', 'g', '6477', 'w', '3709', 'k', 'B', '3485', 't', 'I', 'a', 'Z']

A: m, O, w, g, 6477, w, 3709, k, B, 3485
****
Q: 7, ['t', 'K', 'i', '2959', 't', '6067', 'R', 'B', 'i', 'S', 'k', '3319', 'c', '4817', 'U', 'Z', '1965', '7611', 'r', 'C']

A: t, K, i, 2959, t, 6067, R, B, i, S, k, 3319, c
****
Q: 9, ['n', 'A', 'Q', '3875', 's', '9095', 'o', '9001', 'c', '7457', '8633', '813', 'R', '1509', 'O', 'L', '2017', '5293', '4281', 'M', '3403', 'o', '8469', 'w', '2153', 'w', 'p', '781', 'X', '1347']

A:
n, A, Q, 3875, s, 9095, o, 9001, c, 7457, 8633, 813, R, 1509, O, L, 2017, 5293, 4281, M, 3403
****