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.
1, ['e', '6845', 'S', '585', '4165', '5683', 'S', 'D', '6757', '5955', '197', '717', 'w', '4059', '6863', 'm', 'C', '1869', '2089', '8105', '6845', 'c', 'm', '8789', '5517', '4381', '761', 'D', 's']