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.

3, ['Q', '6385', '4397', '2659', 'G', 't', 'p', '6281', 'C', 'a', 'W', '333', '2717', 'O', '9417', '4893', '5913', 'D', '1529']
Q, 6385, 4397, 2659, G, t, p, 6281, C, a, W, 333, 2717, O, 9417, 4893

5, ['9903', 'P', '1623', '5483', 'D', 'W', '689', '5935', '1897', '233']
9903, P, 1623, 5483, D

3, ['3331', 'H', '2651', 'I', 'K', 'O', 'O', '9571', '6623', 'D', '8859', '1323', '567', 'r', 'V', '5177', '7231', 'k', 'L', 'x', 'a', 'A', '5843', 'Q', '8739', 'k']

3331, H, 2651, I, K, O, O, 9571, 6623, D, 8859, 1323, 567, r, V, 5177, 7231, k, L, x, a, A, 5843