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.
4, ['9021', '5099', 'Z', '989', 'i', '5185', 'l', 'k', 's', '999', 'u', 'K', '8813', '4163', 'm', 'i', '2203', 'I', '4351', 'P', '1897', '4201', '3693', '3851', '1205', 'C']