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.
12, ['2689', '1799', '2961', '1591', '8617', 'G', 's', 'S', '5067', '3425', '1581', 'w', '1421', '8437', '3669', 'Y', 'S', '6903', 'K', 'I', 'x', 'm', 'f', 'J']