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, ['n', '5707', 'v', '9227', '6921', '3793', '6845', 'n', 'B', 'a', 'c', 'v', '2835', 'v', 'f', '2121', 'M', '8673', 'b', '6715', 'K', '4633', '4107', 'Y', 'z', '9965', '4595', '6495', 'A', 'M']