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.
12, ['l', '3397', 'S', 'o', '3235', '4403', 'm', 'g', 'r', '1145', 'A', 'y', '169', '7923', '3499', 'b', 'b', 'P', '1997', '7937', '9297', 'g', '3917', 'W', '8233', 'x']