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.
10, ['2787', 'L', 'J', 'l', '7543', '3525', '8321', '9845', '9353', '6581', '8483', 'N', '3301', '4725', 'k', 'p', '8273', '8805', '719', '1181', '5087', '4535', '9939', '2083', '99', 'o', '4011', '9255']