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.
4, ['3695', '1715', 'J', '3969', 'x', 'm', 'Z', 'p', '8617', 'I', '9639', '4557', 'N', 'Q', 't', 'b', '1383', 'b', 'r', 'q', 'e', 'e', 'B', '8587', '9501', '7499', 'B', '7439', 'G', '5931']