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, ['9157', '8133', 'T', '2303', 'l', 'Y', 'C', 'X', '8967', '7657', 'i', 'l', '6387', '9301', '9803', 'X', 'L', '7387', '7159', 'q', '8623', 'd', 'j']