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.
2, ['3935', '8243', 'k', 'g', '4799', 'x', 'K', '6257', 'H', '9257', 'c', '1857', '1007', 'D', '9407', 'q', 'b', 'I', 'O', '1127', 'z', '3801', 'S']