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, ['n', '2253', '7809', 'U', 'X', '5899', 'R', '6509']
n, 2253, 7809, U, X, 5899, R

2, ['P', '3643', 'a', 't', '9255', '3813', 'r', '9225', '7037', '8731', 'r', '7979', 'q', '1729', '5547', 'w', '5469', '1631', 'Q', '7431', '7129', 'a', 'N']
P, 3643, a, t, 9255, 3813, r, 9225, 7037, 8731, r, 7979, q, 1729, 5547, w, 5469, 1631, Q, 7431, 7129

7, ['3049', '6703', 'r', '2057', 'R', '4685', 'P', 'H', '8343', '8413', '7095', 'X', '4783', '4715', 'K', '895', '5749', '8957', 'h', 'z', '4169', 'c', 'b', 'l', '3417', 'e']

3049, 6703, r, 2057, R, 4685, P, H, 8343, 8413, 7095, X, 4783, 4715, K, 895, 5749, 8957, h