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, ['5899', '901', 'W', '7527', '179', '8419', 'm', '4275', '3781', '1909', 'v', '8947', 'D', '4709', '405', 'E', 'A', '8725', '8383', 'b', 'F', 't', '1103', '171', '5389', '8897', '4867', 'q']