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.
9, ['8741', 'w', '2391', '4635', '8919', '8799', 'z', '9801', '5241', 'N', 'w', 'J', 'U', '621', '8773', '181', '2721', '1215', '3977', 'q', '493', 'Z', 's', 'y', '5859']