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.
1, ['I', 'K', 'X', 'S', '931', 'T', '8499', '8729', 'L', 'X', '3483', 'F', '7275', 'e', '1685', '7179', 'y', 'c', 'D', 'A', '2901', 'z', '5915', 'x', '1161', '2295', '2227']