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.
9, ['2485', '7139', '9479', '9161', 'a', '5689', '6215', '3853', 'a', '8089', '9811', '3071', 'M', '7493', 'N', '9535', '2575', 'W', '3827']