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, ['Q', 'J']
Q

3, ['9869', 'k', '3023', '4437', 'h', '877', 'y']
9869, k, 3023, 4437

5, ['s', '8393', '3335', 'r', '5879', 'C', '8085', '7867', 'e', 'M', 'R', 'K', '1789', '8407', '5941', 'v', 'o', 'F', 'a', '4505', '1775', '1569', 'e', 'I', 'Y', '8635']

s, 8393, 3335, r, 5879, C, 8085, 7867, e, M, R, K, 1789, 8407, 5941, v, o, F, a, 4505, 1775