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, ['Z', 'x', 'I', '13', '2433', 'W', '219', 'J', '9319', '8497', '6049', 'j', 'D', '2691', 'v', 'q', 'P', '2607', '6025', 'm', '5085', 'J', 'i', '7033', '2791', 'N', '2645', 'S']