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, ['681', 'L', '4723', 'g', 'g', '9299', 'w', 'L', 's', 'E', '2725', 'y', '7559', '9943', 'E', '6189', 'N', '9439', '7223', '8989', '9239', 'U', '695', '2289', 'l', 'l', '659']