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.
7, ['9017', 'a', 'b', 'X', '7329', 'u', 'X', 'O', 'l', 'a', '4877', 'v', 'D', 'O', 'g', '1095', '8435', '5733', '9689', 'C', '5635', '5361', 'T', '5615', '1571', 'U', 'm', '3297']