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.
8, ['j', '2585', '7941', '8469', '3289', 'T', 'e', 's', '5385', '4859', 'E', 'M', 'h', '5015', '1793', '8821', '1045', 'q', 'X', 'k', '7083', '2565', '2799', '4103', 't', 'E', '2685']