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, ['k', 'k', 'A', '5571', '3033', '5481']
k, k, A, 5571

9, ['p', '8745', 't', 'Z', '1391', 'J', 'A', '7825', '7867', 'J', '1797', '129', 'f', '7707', 'P', '7771', 'O', '6969']
p, 8745, t, Z, 1391, J, A, 7825, 7867

2, ['3965', '9047', '3145', '7603', 'n', 'e', '8765', '2329', 'J', 'j', '7261', '7391', '9689', '3879', '7991', '7377', 'c', 'L', '3699', '6343', '8687', 'X', 'i', 'i', 'Y']

3965, 9047, 3145, 7603, n, e, 8765, 2329, J, j, 7261, 7391, 9689, 3879, 7991, 7377, c, L, 3699, 6343, 8687, X, i