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.

2, ['g', 'U', 'd', 'I', 'b', 'b', 'e', 'N', 'O', '5349', 'd', 'c', '7211', 'n', '9591', 'W', 'D', '4453']
g, U, d, I, b, b, e, N, O, 5349, d, c, 7211, n, 9591, W

6, ['8369', 'V', '267', '7265', 'V', 'G', 'P', '8681', '3513', '1899', '4619', 'Z', 'Y', '2757', 'x', '3991', 'p', 'c', '7139']
8369, V, 267, 7265, V, G, P, 8681, 3513, 1899, 4619, Z, Y

12, ['Y', '907', 'f', 't', 'j', 'M', '7239', '6361', '8831', 'a', '2891', 'm', '5915', 'T', '1001', 'b', '6689', 'S', 'J', 'X', '1415', '7977', 'M', 'o']

Y, 907, f, t, j, M, 7239, 6361, 8831, a, 2891, m