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: 3, ['p', '7857', 'h', '7041', '7917', '1685', 'o', 'P', '5675', 'W', 'Z', 'L', 'W', 'z', '3111', 'm', 'n', '8823', 'R', '5619', '9219', 'M', 'a', '4991', '7801', '8387', '7483', 'Q', '789']

Output: p, 7857, h, 7041, 7917, 1685, o, P, 5675, W, Z, L, W, z, 3111, m, n, 8823, R, 5619, 9219, M, a, 4991, 7801, 8387

Input: Consider Input: 8, ['3915', '1677', 'O', '6549', '4947', '3511', 'X', '391', 'e', 'y', 'u', 'E', '1981', '9039', 'U', '8203', '4305', 'Y', 'l', 'S']

Output: 3915, 1677, O, 6549, 4947, 3511, X, 391, e, y, u, E

Input: Consider Input: 10, ['A', 'i', 'x', '2609', '7749', '1291', 'u', '1843', '6137', 'o', 'B', '1867', '3541', 'y', '521', 'B', '7129', '8159', 'f', 'P', 'F', '4925', 'I', '7343', '4821', 'e', 'X', 'Y']
Output: A, i, x, 2609, 7749, 1291, u, 1843, 6137, o, B, 1867, 3541, y, 521, B, 7129, 8159