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.
8, ['X', '5205', '517', 'm', '9043', 'C', '9901', '7075', '5515', 'j', '3171', 'y', '17', '8277', 'R', 'J', 'Z', '7373', 'L', '3461', 'C', 'q', 'i']