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, ['D', '1825', 'V', '609', 'z', 'x', 'P', 'f', '789', 'M', 'D', 'w', 'G', '2579', '5639', '6575', 'g', '8915', 'V', '3805', 'q', '4739', '9685', '331', '3151']