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.
9, ['5747', 'm', 'm', '6467', '775', '6695', '81', '8155', '2245', '17', 'w', '609', '267', 't', '8131', '5805', 'N', '9371', '3127', 'v']