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.
10, ['7145', '9161', '8121', 'x', '8865', 'w', '5667', '5193', '6355', 'C', '4199', '4643', '759', 'm', '7333', '1597', 'k', 'G', 'S', '5501', 'D', '8507']