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, ['223', 'Z', '2145', '9863', 'H', 'C', 'c', '6643', '6277', 'e', '261', '6219', '7581', '6609', 'j', '5027', '1185', 'C', 'c', 'r', 'c', 'W', '1659', 'd', 'y', '9455', 'q', '5937', '2275']