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.
4, ['4973', '3407', 'Z', '1991', 'b', '6853', '3703', '343', 'i', '1201', '8045', 't', '5509', '611', '9559', 'f', '9283', '1349', 'Y', '3913', 'W', 'n', '2809', 'i', 'K', '8103']