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.

1, ['D', '7203', 'r', '8371', '6637', '4107', 'L', '317', 'T', 'q', 'W', '8475', 'x', '3297', 'H', 'G', '3511', '5221', 'V', 'k', 'm', '4659', 'r', 'q', '3465', '9245', 'p', 'k', '6289', 'f']
D, 7203, r, 8371, 6637, 4107, L, 317, T, q, W, 8475, x, 3297, H, G, 3511, 5221, V, k, m, 4659, r, q, 3465, 9245, p, k, 6289

5, ['n', '1643', 'T', '7613', '8719', 'y', 'n', '6077', '727', 'I', 's', '229', 'h', '6299']
n, 1643, T, 7613, 8719, y, n, 6077, 727

9, ['P', 'r', '1951', 'X', '3491', '7579', '5423', 'R', '4881', '9811', 'W', '3405', '2593', 'Z', 'a', '5907', 'F', 'u', '1471', 'u', 'B', '8217', '9111', '9523', 's']

P, r, 1951, X, 3491, 7579, 5423, R, 4881, 9811, W, 3405, 2593, Z, a, 5907