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: Consider Input: 4, ['s', 'f', '4839', '1155', '7639', 'w', '2947', 'R', 'h']

Output: s, f, 4839, 1155, 7639

Input: Consider Input: 4, ['9827', '4159', '8267', 'B', '609', '2119', '7671', '6383', '6683', 'f', '8495', '9171', '5869', '2415', 'H', '7187', 'j', 'I', 'Y', 's', 'v', 'l', 'D']

Output: 9827, 4159, 8267, B, 609, 2119, 7671, 6383, 6683, f, 8495, 9171, 5869, 2415, H, 7187, j, I, Y

Input: Consider Input: 5, ['425', 'R', '3561', 'M', 't', 'B', '6171', 'C', '3375', 's', '2379', 'S', 't', 'O', 'D', '8095', '3951', 'j', '9199', '6801', '6403', '9291', 'Z', 'C', '2535', '4865', 'v', '4629', '3901']
Output: 425, R, 3561, M, t, B, 6171, C, 3375, s, 2379, S, t, O, D, 8095, 3951, j, 9199, 6801, 6403, 9291, Z, C