Definition: 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.
Input: 1, ['4151', '5421', 'C', 'q', 'E', '6447', '9363', 'S', 'C', '3951', 'U', 'j', 'F', 'B', '1243', '9123', '2993', '4271', 'K', '2111', '5287', '5475', 'J', '5169', 'x', '8635', 'J', '6671']
Output:
4151, 5421, C, q, E, 6447, 9363, S, C, 3951, U, j, F, B, 1243, 9123, 2993, 4271, K, 2111, 5287, 5475, J, 5169, x, 8635, J