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.
13, ['k', 'M', 'n', '261', 'J', '5241', '3225', 'Q', '3511', 'n', 'q', 'O', '1483', '627', '2703', '655', '7335', '6765', '3971', '6183', '9541', '6707', 'd', '1867', 'd', '9705', 'A', '5789', '5111']