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.
11, ['589', 'w', '3379', 'L', 'E', 'E', '1247', 'j', 'J', 'e', '8529', 'X', 'N', '9969', '5631', 'm', 'U', '2629', '957', '3773', '5785', '2515', '1847', 'N', 'K', 'i', 'd', '8959', 'l']