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.
9, ['q', '8871', '5859', 'B', '6297', '4227', 'G', 'L', '8293', 'T', '4539', 'Z', 'W', 'x', '1259', '823', '2627', 'E', 'm', 'S', 'y', 'v', '2777', 'x', 'o', 'w', '2989', '245', '8777', '8347']