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, ['2681', 'B', 'L', 'w', '343', '5481', 'c', 'W', '2697', 'G', 'C', '7623', '6811', '9485', '1539', 'h', 't', 'r', 'C', 'J', 'D', '2183', '8525', 't', '3963', 'g']