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.
11, ['k', '3223', '1907', 'x', '2275', '659', '6053', '9745', '5727', 'g', '8765', 'c', '5583', '5637', 'a', '1027', 'l', '5639', '3771', '6693', '5601', 'U', 'l', '8887']