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, ['s', '8339', 'x', 'H']
s, 8339

4, ['781', 'x', 'v', 'G', 'k', '4317', '6855', 'D', 'S', 'z', '8161', '2497', '255', 'N', 'F', 'X', 'W', 'D', '2873', '8385', 'M', '8043', 'z']
781, x, v, G, k, 4317, 6855, D, S, z, 8161, 2497, 255, N, F, X, W, D, 2873

11, ['8369', '645', 'm', '6485', 'X', '381', 'o', '6987', '5085', 'I', 'r', '6989', '5693', 'l', 'e', 'j', 'X', '7677', '2387', '963', 'R', '6045', '513', '8711', '681', 'D']

8369, 645, m, 6485, X, 381, o, 6987, 5085, I, r, 6989, 5693, l, e