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.

7, ['O', 'G', '303', 'J', '8545', 'u', '1983', 'u', '425', 't', '8249', 'i', '4727', '6039', 'k', '1927', 'z', '4429', '4131', '8543', '9127', 'J']
O, G, 303, J, 8545, u, 1983, u, 425, t, 8249, i, 4727, 6039, k

3, ['z', '6977', '5793', '8711', 'm', '7889', 'y']
z, 6977, 5793, 8711

9, ['S', 'd', 'h', 'k', 'o', '5631', '6777', '4465', 'K', 'x', '7739', 'l', '9979', '8751', 'Z', 'v', '9091', 'i', '821', 'o', 'x']

S, d, h, k, o, 5631, 6777, 4465, K, x, 7739, l