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.
7, ['1709', '6495', 'J', '1327', '3581', 'p', '421', '6471', '4785', '2283', 'V', 'D', '3101', '5719', '4481', '2901', '6377', 'S', 'h', '4887', 'W', '6161', '4687', '299', 'f', '1867', '8163', '7111']