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.
5, ['d', 'N', '8141', 'p', 'e', 'Y', '9449', 'a', '4311', '4587', '8367', 'n', '4835', '9099', '5171', '3425', '3597']