Instructions: 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.
Input: 10, ['f', 'M', 'Z', '2047', '4009', 'q', '7339', 'U', '5945', 'J', '6619', 'a', '9989', 'w', '165', 'v', 'x', '2733', 'L', '6571', 'l', '4891', 'q']
Output:
f, M, Z, 2047, 4009, q, 7339, U, 5945, J, 6619, a, 9989