You will be given a definition of a task first, then some input of the task.
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.

8, ['6351', 'P', '2463', '3797', '2799', '3341', 'a', '8719', '1187', '1107', 'w', '3213', 'k', 'Q', '7919', 'r', 'S', 'Y', '2915', 'h', '3057', '4653', '6307', '101', '5223', 'g']
Output:
6351, P, 2463, 3797, 2799, 3341, a, 8719, 1187, 1107, w, 3213, k, Q, 7919, r, S, Y