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, ['x', 'i', '85', '5403', 'b', '2451', '1699', '6809', 'I', 'a', 'S', '2059', 'l', '8739', 'L', 'y', 'G', '7843', 'f', '4657', '3161', '5857', 'V', 'X', 'M', 'l']