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.
6, ['5421', 'm', '145', 'x', '7105', '3595', '4219', '1659', 'Z', '1975', '3569', '1535', '803', '6075', '3541', '7685', 'r', 'B', '2799', 't', 'W', 'x', '3697', 'N']