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.
5, ['1961', 'X', '9057', '3281', '147', '7831', '231', 'A', '7809', 'a', 'e', '1689', '6893', '9077', 'W', '5283', '3065', 'u', 'q', '9257', 'z', 'V', '9913']