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.
3, ['3137', '7383', '4393', 'n', 'i', '3357', '9869', 'k', '2497', 'e', 'O', 'A', 'Z', '4409', '7085', '989', '8677', 'm', '2365', '5829', '5093', '7975', '3605', '1441', 'B', '7713', 'Q', '463']