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: 3, ['P', 'u', 'X', 'j', '7477', '3877']
Example Output: P, u, X

Example Input: 1, ['C', '9539', '7199', '9891']
Example Output: C, 9539, 7199

Example Input: 1, ['1837', 'F', '9429']
Example Output:
1837, F