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.
5, ['2985', '3539', '9941', 'z', '751', 'x', '5549', '451', '7957', 'w', '8579', 's', '1561', 'b', '7083', 'X', 'i', 'L', 'o']