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.
3, ['4341', 'A', 'Z', 'A', '1997', 'k', 'T', 'E', '6567', '5287', 'p', '2205', 'n', 'x', 'X', 'F', '8885', 'f', '539', '4203', 'C', 'l']