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, ['q', '5337', '1307', '7559', '1257', '4537', 'z', 'p', '2905', '979', 's', '8559', 'K', '4765', 't', 'E', '6705', '4749', '3159', '1213', 'Z', '989', 'l', '1233', '4273', '1331', '159', 'y', '1499']