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, ['I', '3405', '2145', '3629', '9381', 'Y', 'E', '1205', '6981', 'P', '7883', '9057', '6925', 'I', '5289', '3013', '1981', '1075', '4769', '3511', '137', '1755', '4597']