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.

Example Input: 2, ['z', 'C', '1787', 'P', 'i', 'M', 'V', '7833', 'i', '189', '6017', 'I']
Example Output: z, C, 1787, P, i, M, V, 7833, i, 189

Example Input: 5, ['5315', '8773', 'Z', '4873', 'r', '2929', 'K', 'y', '4997', '6739', 'U', 'j']
Example Output: 5315, 8773, Z, 4873, r, 2929, K

Example Input: 11, ['C', '2517', '2265', '93', 'a', '2533', 'H', '2361', '4631', '4343', '3185', '4987', '5303', 'g', '647', 'L', '7203', '4295', '5337', 'Q', 'Z', 'm']
Example Output:
C, 2517, 2265, 93, a, 2533, H, 2361, 4631, 4343, 3185