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: 9, ['A', 'z', 'V', 'm', 'Y', '6679', 'v', 'J', '5091', '5873', 'A', 'Q', 'H', '4897', '7143', 'l', '6091', 'D', '2423', '351', '4757', 'v', 'N', 'X', 'R', '3483', 'q', '2729', '2517']
Example Output: A, z, V, m, Y, 6679, v, J, 5091, 5873, A, Q, H, 4897, 7143, l, 6091, D, 2423, 351

Example Input: 5, ['v', '371', '1799', 'E', '7605', 'k', '6133', '2871', 's', '9981', 'E']
Example Output: v, 371, 1799, E, 7605, k

Example Input: 2, ['3971', '2143', '3291', '5965', 'K', 'X', 'b', '5263']
Example Output:

Show your work and conclude with the exact phrasing "Therefore, the final answer is [answer]." where [answer] is just the final number or expression that solves the problem.
user
3971, 2143, 3291, 5965, K, X

