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, ['I', '2597', 'd', '3765', '8891', 'O', '2645', 'K', '6519', 'U', 'K', '1499', 'p', '2323', '909', '1941', '1815', 'Z', '2809', 'y', '1361', 's', '9267', '127', '619', 'b', 'D', '9329']