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.
4, ['J', 'A', '1309', 'z', '9857', 'n', '2421', 'L', 'N', 'N', '2055', '2707', 'k', '2631', '5195', 'A', '9759', 'Y', 'Z', '7747', '6803', 'c', '749']