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, ['c', 't', '8783', 'E', '5327', '7383', '6607', 'R', '5779', 'B', 'k']
c, t, 8783, E, 5327, 7383, 6607, R, 5779

8, ['6085', '6315', 'h', 'K', 'R', '1', '8471', '321', 'p', '2565', '8325', 'E', '4567', 'e', 'b', '2221', 'T', '5603', '2947']
6085, 6315, h, K, R, 1, 8471, 321, p, 2565, 8325

4, ['7049', '3925', 'r', 'x', 'u', 'X', '271', 'A', '9385', '2641', '6119', '5029', 'X', '7957', 'D', 'H', '6155', 'e', 'A', 'M', '2609', '1523', '7321', 'E', '4163']

7049, 3925, r, x, u, X, 271, A, 9385, 2641, 6119, 5029, X, 7957, D, H, 6155, e, A, M, 2609