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, ['1965', 'Z', 'K', '4999', '2605', 'g', 'a', '153', '6039', '7343', '2027', 'e', '6077', '2311', 'k', 'J', '2917', 'b', '9623', '6301', 'o', '6733', '5535', 'p', 'V']