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.
3, ['1331', '3297', 'k', 'u', 'j', 'y', '7607', '857', '9287', '5989', '9899', 'I', 'M', '9687', '7845', 'l', 'k', '7285', 'j', 'W', 'N', '4515', '773', 'I', 'q', '9007', 'm', 'f']