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, ['2837', '6921', '8725', 'K', '6913', '4347', 'm', '3447', '3847', '6287', '4001', '4793', '5771', 'i', '851', '5511', '991', '2907', 'i', '927', '7985']