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.
3, ['3331', 'H', '2651', 'I', 'K', 'O', 'O', '9571', '6623', 'D', '8859', '1323', '567', 'r', 'V', '5177', '7231', 'k', 'L', 'x', 'a', 'A', '5843', 'Q', '8739', 'k']