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: 4, ['F', 'k', '5745', 'T', 'p', '1283', 'A', '3837', 'y', 'j', '4083', 'm', '879', '1907', '2417', 'Q', '5303', '8327', 'd', '8699', '4873', '4291']
Example Output: F, k, 5745, T, p, 1283, A, 3837, y, j, 4083, m, 879, 1907, 2417, Q, 5303, 8327

Example Input: 5, ['j', 'Q', '6289', 'K', '8341', '2631', '2421', '7539', 'h', '4761', 'K', '7323', 'i', 'X', 'y', '6981', 'P', '7335', 'h', 'H']
Example Output: j, Q, 6289, K, 8341, 2631, 2421, 7539, h, 4761, K, 7323, i, X, y

Example Input: 5, ['241', '7315', 'k', 'L', '1553', 'S', 'V', '5583', '7759', 'f', 'Z']
Example Output:
241, 7315, k, L, 1553, S