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.
10, ['1985', 'k', 'J', '5261', 'f', '4867', 'M', '3063', '8771', 'z', 'J', 'Q', 'N', '5445', '9163', '7281', 'O', '7483', '2639', 'D', 'V', 'n', '561', '4719', '303', '2233', 'J', '8019']